Skip to content

Commit

Permalink
Add missing cwd option when calling execGit function
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Nicora committed Dec 23, 2021
1 parent 96a1a29 commit 0ca02c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resolveGitRepo.js
Expand Up @@ -54,7 +54,7 @@ export const resolveGitRepo = async (cwd = process.cwd()) => {

// read the path of the current directory relative to the top-level directory
// don't read the toplevel directly, it will lead to an posix conform path on non posix systems (cygwin)
const gitRel = normalize(await execGit(['rev-parse', '--show-prefix']))
const gitRel = normalize(await execGit(['rev-parse', '--show-prefix'], { cwd }))
const gitDir = determineGitDir(normalize(cwd), gitRel)
const gitConfigDir = normalize(await resolveGitConfigDir(gitDir))

Expand Down

0 comments on commit 0ca02c9

Please sign in to comment.