Skip to content

Commit

Permalink
fix: don't normalize path gitDir path for better Windows compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj authored and okonet committed Aug 17, 2019
1 parent e70e08f commit eb3fa83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolveGitDir.js
Expand Up @@ -9,7 +9,7 @@ module.exports = async function resolveGitDir(options = {}) {
// depending on where the caller initiated this from, hence clear GIT_DIR
delete process.env.GIT_DIR
const gitDir = await execGit(['rev-parse', '--show-toplevel'], options)
return path.normalize(gitDir)
return path.resolve(gitDir)
} catch (error) {
return null
}
Expand Down

0 comments on commit eb3fa83

Please sign in to comment.