We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 870e02e commit 47b585dCopy full SHA for 47b585d
src/gitdata.ts
@@ -1,5 +1,6 @@
1
import git = require('isomorphic-git');
2
import fs = require('fs');
3
+import fsPath = require('path');
4
5
import * as manifest from './manifest';
6
interface GitData {
@@ -9,6 +10,7 @@ interface GitData {
9
10
}
11
12
export async function getGitData(path: string): Promise<GitData> {
13
+ path = fsPath.resolve(path);
14
const root = await git.findRoot({
15
fs,
16
filepath: path,
0 commit comments