Skip to content

Commit

Permalink
Always return full path to git dir
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmunro committed Jun 12, 2018
1 parent 3f0203a commit 4b1ac7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function spawnHook(hookName, args) {
*/
function getClosestGitPath(currentPath) {
try {
var result = execSync('git rev-parse --git-dir', {cwd: currentPath}).toString();
var result = execSync('git rev-parse --absolute-git-dir', {cwd: currentPath}).toString();
return result.replace(/\n/g, '');
} catch (error) {
if (error.status === 128) {
Expand Down

0 comments on commit 4b1ac7c

Please sign in to comment.