From 50ee3ef4eb3280f0d343e3c917aecc30d2de0ca9 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Holcroft Date: Jan 01 2021 15:10:22 +0000 Subject: automatic update of pot/po files --- diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 7ab3e5a..ad38d47 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -13,7 +13,7 @@ function clean_tmp() { trap clean_tmp exit -for staged in $(git diff --name-only --cached); do +for staged in $(git diff --name-only --cached --diff-filter=d); do if [ "${staged##*.}" == "pot" ] ; then echo "$staged" git diff --no-ext-diff --cached --patch-with-raw --output="$output" "$staged"