Skip to content

Commit 90e343b

Browse files
Iiro Jäppinenokonet
Iiro Jäppinen
authored andcommittedJun 6, 2019
fix: normalize gitDir path for Windows compatibility
1 parent 9871389 commit 90e343b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/resolveGitDir.js

+2-1
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)
Please sign in to comment.