We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38fe875 commit aa4d10eCopy full SHA for aa4d10e
lib/git-hooks.js
@@ -173,7 +173,7 @@ function spawnHook(hookName, args) {
173
*/
174
function getClosestGitPath(currentPath) {
175
try {
176
- var result = execSync('git rev-parse --git-dir', {cwd: currentPath}).toString();
+ var result = execSync('git rev-parse --absolute-git-dir', {cwd: currentPath}).toString();
177
return result.replace(/\n/g, '');
178
} catch (error) {
179
if (error.status === 128) {
0 commit comments