Skip to content

Commit 9716bb3

Browse files
committed
Merge pull request #20 from holtwilkins/patch-1
Update pre-commit
2 parents 343f77a + c39ac82 commit 9716bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ hook_dir="$(dirname $0)"
1010
hook_symlink="$(readlink $0)"
1111

1212
# Figure out where commit hooks are if pre-commit is setup as a symlink
13-
if [ ! -z "$hook_symlink" ]; then
13+
if [ ! -z "$hook_symlink" ] && ! [[ "$hook_symlink" == ../* ]]; then
1414
subhook_root="$(dirname $hook_symlink)/commit_hooks"
1515
fi
1616

0 commit comments

Comments
 (0)