We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 96a1a29 commit a230b03Copy full SHA for a230b03
lib/resolveGitRepo.js
@@ -54,7 +54,7 @@ export const resolveGitRepo = async (cwd = process.cwd()) => {
54
55
// read the path of the current directory relative to the top-level directory
56
// don't read the toplevel directly, it will lead to an posix conform path on non posix systems (cygwin)
57
- const gitRel = normalize(await execGit(['rev-parse', '--show-prefix']))
+ const gitRel = normalize(await execGit(['rev-parse', '--show-prefix'], { cwd }))
58
const gitDir = determineGitDir(normalize(cwd), gitRel)
59
const gitConfigDir = normalize(await resolveGitConfigDir(gitDir))
60
0 commit comments