From 22509932c3860096c05f51f0d42abc598ae7ed44 Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Mon, 22 Jan 2024 23:36:41 +0100 Subject: [PATCH] fixed pre-commit hook for deleted files --- pre-commit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre-commit.sh b/pre-commit.sh index 6018062..0b841d6 100755 --- a/pre-commit.sh +++ b/pre-commit.sh @@ -8,7 +8,7 @@ set -e # format make format -git diff --name-only --cached | xargs -l git add +git diff --name-only --cached --diff-filter=d | xargs -l git add # build make build