Precommit script should trigger even if just the changelog was updated.

This commit is contained in:
Sebastian Lackner 2014-07-13 01:32:09 +02:00
parent dc95c57c20
commit cffa29b1ae

View File

@ -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 ""