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.
2 parents 343f77a + c39ac82 commit 9716bb3Copy full SHA for 9716bb3
pre-commit
@@ -10,7 +10,7 @@ hook_dir="$(dirname $0)"
10
hook_symlink="$(readlink $0)"
11
12
# Figure out where commit hooks are if pre-commit is setup as a symlink
13
-if [ ! -z "$hook_symlink" ]; then
+if [ ! -z "$hook_symlink" ] && ! [[ "$hook_symlink" == ../* ]]; then
14
subhook_root="$(dirname $hook_symlink)/commit_hooks"
15
fi
16
0 commit comments