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.
This commit is contained in:
Talia 2022-06-14 15:16:19 +02:00
parent 83cbf4c4ce
commit 802e57791e
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ if [ -n "$filter" ]; then
ln -s $GIT_DIR/ .git ln -s $GIT_DIR/ .git
$filter $filter
git add --all git add --all
rm -rf .git rm .git
fi fi
if [ -n "$validation" ]; then if [ -n "$validation" ]; then