[sysadmin-bin] Run update-cgit on git.gnome.org only



commit 6d39345b57847f4fa5d3d21abefd588d4990e49b
Author: Andrea Veri <averi redhat com>
Date:   Tue Dec 5 12:43:21 2017 +0100

    Run update-cgit on git.gnome.org only

 git/post-receive-update-description |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/git/post-receive-update-description b/git/post-receive-update-description
index 842cc74..6d78bd9 100755
--- a/git/post-receive-update-description
+++ b/git/post-receive-update-description
@@ -20,7 +20,11 @@ update_info_from_doap() {
     fi
 
     git cat-file blob "$newrev:$path" | $BINDIR/extract-doap-info $GIT_DIR
-    $BINDIR/update-cgit
+    if [ $(hostname) == 'git.gnome.org' ]; then
+        $BINDIR/update-cgit
+    else
+        :
+    fi
 }
 
 update_info() {


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