From 802e57791e3eb4b2239c598d73cf3b99b2ea7133 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Tue, 14 Jun 2022 15:16:19 +0200 Subject: [PATCH] Remove -rf flag from rm command in git hook Technically the --recursive flag should be ignored for symlinks, but it nonetheless seems safer to not have the flag. --- githooks/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/githooks/pre-commit b/githooks/pre-commit index 58b2598..82e6e73 100755 --- a/githooks/pre-commit +++ b/githooks/pre-commit @@ -29,7 +29,7 @@ if [ -n "$filter" ]; then ln -s $GIT_DIR/ .git $filter git add --all - rm -rf .git + rm .git fi if [ -n "$validation" ]; then