[sysadmin-bin: 67/168] Skip .po check during import



commit d1ca9052d8f4fea5fe2551253489194bf58f44c1
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Thu Mar 19 23:24:11 2009 -0400

    Skip .po check during import
    
    Don't check .po's during import; we don't want to enforce correct
     .po files for some ancient historical branch.

 pre-receive-check-po |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/pre-receive-check-po b/pre-receive-check-po
index 503154d..e9b10ea 100755
--- a/pre-receive-check-po
+++ b/pre-receive-check-po
@@ -122,6 +122,14 @@ check_pos() {
 
 }
 
+GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
+
+# 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
+    exit 0
+fi
+
 if [ $# = 3 ] ; then
     if ! check_pos $@ ; then
 	exit 1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]