[sysadmin-bin] Don't check for .po files when checkpo is set to false on repository's config file
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Don't check for .po files when checkpo is set to false on repository's config file
- Date: Wed, 20 Nov 2013 00:00:52 +0000 (UTC)
commit aae072a0c7e1136475559627a6cf22cee9d224ab
Author: Andrea Veri <av gnome org>
Date: Wed Nov 20 01:00:44 2013 +0100
Don't check for .po files when checkpo is set to false on repository's config file
git/pre-receive-check-po | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/git/pre-receive-check-po b/git/pre-receive-check-po
index 71db5d8..5d5098d 100755
--- a/git/pre-receive-check-po
+++ b/git/pre-receive-check-po
@@ -126,6 +126,14 @@ PATH=/usr/libexec/gettext17:$PATH
GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
+# Don't check for .po files when check_po is set to
+# false on the repository's config file
+check_po=$(git config hooks.checkpo || echo true)
+
+if [ "$checkpo" != "true" ] ; then
+ exit 0
+fi
+
# Don't check .po's during import; we don't want to enforce correct
# .po files for some ancient historical branch
if [ -e $GIT_DIR/pending ] ; then
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]