diff --git a/lib/resolveGitRepo.js b/lib/resolveGitRepo.js index 6d71960a0..886e2abe2 100644 --- a/lib/resolveGitRepo.js +++ b/lib/resolveGitRepo.js @@ -16,7 +16,7 @@ const fsLstat = promisify(fs.lstat) * submodules and worktrees */ const resolveGitConfigDir = async gitDir => { - const defaultDir = path.resolve(gitDir, '.git') + const defaultDir = normalize(path.join(gitDir, '.git')) const stats = await fsLstat(defaultDir) // If .git is a directory, use it if (stats.isDirectory()) return defaultDir