We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f90b682 commit c4a39fcCopy full SHA for c4a39fc
src/helpers.php
@@ -47,13 +47,13 @@ function global_hook_dir()
47
*/
48
function git_dir()
49
{
50
- $gitDir = realpath(trim(shell_exec('git rev-parse --git-common-dir')));
+ $gitDir = trim(shell_exec('git rev-parse --git-common-dir'));
51
if ($gitDir === null || $gitDir === '' || $gitDir === '--git-common-dir') {
52
// the version of git does not support `--git-common-dir`
53
// we fallback to `--git-dir` which and lose worktree support
54
return realpath(trim(shell_exec('git rev-parse --git-dir')));
55
}
56
57
- return $gitDir;
+ return realpath($gitDir);
58
59
0 commit comments