From cffa29b1ae602782c9e46429038955f81dc42260 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Sun, 13 Jul 2014 01:32:09 +0200 Subject: [PATCH] Precommit script should trigger even if just the changelog was updated. --- precommit-hook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/precommit-hook.sh b/precommit-hook.sh index fc418ebc..71d7fea7 100755 --- a/precommit-hook.sh +++ b/precommit-hook.sh @@ -2,7 +2,7 @@ # Installation: ln -s ../../precommit-hook.sh .git/hooks/pre-commit git diff --cached --name-status | while read status file; do - if [[ "$file" =~ ^patches/ ]] || [[ "$file" =~ ^debian/tools/ ]]; then + if [[ "$file" =~ ^patches/ ]] || [[ "$file" =~ ^debian/tools/ ]] || [[ "$file" =~ ^debian/changelog ]]; then echo "" echo "*** UPDATING AUTOGENERATED FILES ***" echo ""