Skip to content

Commit 90e343b

Browse files
Iiro Jäppinenokonet
authored andcommitted
fix: normalize gitDir path for Windows compatibility
1 parent 9871389 commit 90e343b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/resolveGitDir.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
'use strict'
22

33
const execGit = require('./execGit')
4+
const path = require('path')
45
const printErrors = require('./printErrors')
56

67
module.exports = async function resolveGitDir() {
78
try {
89
const gitDir = await execGit(['rev-parse', '--show-toplevel'])
9-
return gitDir
10+
return path.normalize(gitDir)
1011
} catch (error) {
1112
printErrors(error)
1213
return null

0 commit comments

Comments
 (0)