Skip to content

Commit

Permalink
fix: use path.join and normalize to improve msys compatibility in…
Browse files Browse the repository at this point in the history
… resolveGitRepo
  • Loading branch information
MichaelBelousov authored Mar 24, 2020
1 parent b3c2ffd commit 1ad263a
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 @@ -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
Expand Down

0 comments on commit 1ad263a

Please sign in to comment.