From 78e38b57bf2a723091fbd9866403ccdac36928d7 Mon Sep 17 00:00:00 2001 From: ♪ I'm a bot, bot, bot ♪ <_update_docs_trans@sundries01.phx2.fedoraproject.org> Date: Jan 02 2021 21:48:59 +0000 Subject: automatic update of pot/po files --- diff --git a/.githooks/pre-commit b/.githooks/pre-commit index d966790..ad38d47 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -24,6 +24,7 @@ for staged in $(git diff --name-only --cached --diff-filter=d); do countDateRem=$(grep -E --count '^[-]"POT-Creation-Date:' "$output") if [ "$countChanges" -eq $(("$countDateAdd" + "$countDateRem")) ] ; then + echo "the file $staged only contains POT-Creation-Date" git reset -q HEAD "$staged" fi fi