Skip to content

Commit f64a0c6

Browse files
committed
git.hooks: fix old hooks cleanup
It was trying to delete the store path instead of the `.git/hooks/<name>` Fixes #63 (comment)
1 parent d7a5ebc commit f64a0c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git-hooks.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ let
107107
# remove. Don't touch other existing hooks.
108108
elif [[ "$dst_hook" == ${builtins.storeDir}/* ]]; then
109109
has_update
110-
rm -v "$dst_hook"
110+
rm -v "$target_hook_dir/$name"
111111
fi
112112
done
113113
if [[ $update != 0 ]]; then

0 commit comments

Comments
 (0)