From ee50a970ab5333d179674d3d6dcfcc775d0bdba6 Mon Sep 17 00:00:00 2001 From: Francois Andrieu Date: Aug 10 2021 19:10:30 +0000 Subject: handle pre-commit hook for pot update --- diff --git a/Makefile.in b/Makefile.in index 94239c9..9b54294 100644 --- a/Makefile.in +++ b/Makefile.in @@ -56,6 +56,7 @@ pushpot: pot git clone ssh://git@pagure.io/fedora-web/translations.git $(TRANS_TMP) cp $(POT_FILE) $(TRANS_TMP)/$(TRANS_FOLDER)/ touch $(TRANS_TMP)/$(TRANS_FOLDER)/LINGUAS + cd $(TRANS_TMP) && [[ -f .githooks/pre-commit ]] && ln -sfr .githooks/pre-commit .git/hooks/ || /bin/true cd $(TRANS_TMP) && git add *.pot cd $(TRANS_TMP) && git commit -m "update pot file for $(TRANS_FOLDER)" cd $(TRANS_TMP) && git push