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 May 3, 2018
1 parent 5bcb7ca commit f229dfe
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 @@ -179,7 +179,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 f229dfe

Please sign in to comment.