We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0aca132 commit 0e07073Copy full SHA for 0e07073
lib/git-hooks.js
@@ -179,7 +179,7 @@ function spawnHook(hookName, args) {
179
*/
180
function getClosestGitPath(currentPath) {
181
try {
182
- var result = execSync('git rev-parse --git-dir', {cwd: currentPath}).toString();
+ var result = execSync('git rev-parse --absolute-git-dir', {cwd: currentPath}).toString();
183
return result.replace(/\n/g, '');
184
} catch (error) {
185
if (error.status === 128) {
0 commit comments