[sysadmin-bin] Make sure commits-list gets defined on Infrastructure related repositories as well



commit 02be484a4cd28cbaaa6bd9628a9953b7847136e3
Author: Andrea Veri <averi redhat com>
Date:   Mon May 28 19:07:17 2018 +0200

    Make sure commits-list gets defined on Infrastructure related repositories as well

 git/gnome-pre-receive | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/git/gnome-pre-receive b/git/gnome-pre-receive
index 09db2ed..581a8f0 100755
--- a/git/gnome-pre-receive
+++ b/git/gnome-pre-receive
@@ -65,7 +65,7 @@ EOF
 fi
 
 if [ $(hostname) == 'gitlab.gnome.org' ]; then
-  if [ $basedir = "${GITLABDIR}/GNOME" ]; then
+  if [[ $basedir = "${GITLABDIR}/GNOME" || $basedir = "${GITLABDIR}/Infrastructure" ]]; then
     git config hooks.emailprefix 1>/dev/null
     if [ "$?" -eq 1 ]; then
       git config hooks.emailprefix ""
@@ -78,7 +78,9 @@ if [ $(hostname) == 'gitlab.gnome.org' ]; then
     if [ "$?" -eq 1 ]; then
       git config gnome.gitlabrepo true
     fi
+  fi
 
+  if [ $basedir = "${GITLABDIR}/GNOME" ]; then
     sudo setfacl -d -R -m g:gnomecvs:rwx ./objects
     sudo setfacl -R -m g:gnomecvs:rwx ./objects
     sudo setfacl -d -R -m g:gnomecvs:rwx ./refs/heads


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