[sysadmin-bin] Drop trailing white spaces and stop applying the hook on gitlab-test



commit f9e8e8affbe0c6f60792ed1fdbb067386c4f148b
Author: Andrea Veri <averi redhat com>
Date:   Fri Dec 1 13:27:48 2017 +0100

    Drop trailing white spaces and stop applying the hook on gitlab-test

 git/gnome-pre-receive |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/git/gnome-pre-receive b/git/gnome-pre-receive
index 5d6123d..1b8dc52 100755
--- a/git/gnome-pre-receive
+++ b/git/gnome-pre-receive
@@ -3,7 +3,7 @@
 # Standard GNOME pre-receive hook.
 #
 # The "pre-receive" hook is invoked just before receive-pack starts to
-# update refs on the remote repository. Its exit status determines the 
+# update refs on the remote repository. Its exit status determines the
 # success or failure of the update.
 
 BINDIR=/home/admin/bin/git
@@ -63,7 +63,7 @@ EOF
     exit 1
 fi
 
-if [[ $(hostname) =~ gitlab(\-test|)\.gnome\.org$ ]]; then 
+if [ $(hostname) == 'gitlab.gnome.org' ]; then
   if [ $basedir = '/var/opt/gitlab/git-data/repositories/GNOME' ]; then
     cd $GIT_DIR
     git config hooks.emailprefix 1>/dev/null
@@ -76,7 +76,7 @@ if [[ $(hostname) =~ gitlab(\-test|)\.gnome\.org$ ]]; then
     fi
     git config gnome.gitlabrepo 1>/dev/null
     if [ "$?" -eq 1 ]; then
-      git config gnome.gitlabrepo true 
+      git config gnome.gitlabrepo true
     fi
 
     sudo setfacl -d -R -m g:gnomecvs:rwx $GIT_DIR/objects
@@ -87,7 +87,7 @@ if [[ $(hostname) =~ gitlab(\-test|)\.gnome\.org$ ]]; then
     setfacl -R -m g:gnomecvs:rwx $GIT_DIR
   fi
 elif [ $(hostname) == 'git.gnome.org' ]; then
-  cd $GIT_DIR  
+  cd $GIT_DIR
   if `git config gnome.gitlabrepo`; then
     user=`id -u`
     find $GIT_DIR/objects -uid $user -type d | xargs setfacl -d -m g:git:rwx
@@ -104,7 +104,7 @@ The ${projectshort} repository has moved to Gitlab. Please update
 your Git remote to:
 
     git gitlab gnome org:GNOME/${projectshort}.git
-    
+
 ---
 EOF
         exit 1


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