Skip to content

Commit

Permalink
fix: unbreak windows by correctly normalizing cwd (#1029)
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Kalmár <[email protected]>
  • Loading branch information
tkalmar and Thomas Kalmár authored Oct 10, 2021
1 parent 11c004e commit f861d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resolveGitRepo.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ 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 gitDir = determineGitDir(cwd, gitRel)
const gitDir = determineGitDir(normalize(cwd), gitRel)
const gitConfigDir = normalize(await resolveGitConfigDir(gitDir))

debugLog('Resolved git directory to be `%s`', gitDir)
Expand Down

0 comments on commit f861d8d

Please sign in to comment.