Skip to content

Commit 47b585d

Browse files
committed
fix: support deployment from nested directories
1 parent 870e02e commit 47b585d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gitdata.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import git = require('isomorphic-git');
22
import fs = require('fs');
3+
import fsPath = require('path');
34

45
import * as manifest from './manifest';
56
interface GitData {
@@ -9,6 +10,7 @@ interface GitData {
910
}
1011

1112
export async function getGitData(path: string): Promise<GitData> {
13+
path = fsPath.resolve(path);
1214
const root = await git.findRoot({
1315
fs,
1416
filepath: path,

0 commit comments

Comments
 (0)