[sysadmin-bin] Damned Lies is now pushing directly via GitLab



commit b68223cf7f39f8129aef7f8d5de0fa11f233dc65
Author: Andrea Veri <averi redhat com>
Date:   Tue May 29 19:43:16 2018 +0200

    Damned Lies is now pushing directly via GitLab

 git/gnome-pre-receive | 22 ++--------------------
 1 file changed, 2 insertions(+), 20 deletions(-)
---
diff --git a/git/gnome-pre-receive b/git/gnome-pre-receive
index 581a8f0..af49dea 100755
--- a/git/gnome-pre-receive
+++ b/git/gnome-pre-receive
@@ -79,23 +79,8 @@ if [ $(hostname) == 'gitlab.gnome.org' ]; 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
-    sudo setfacl -R -m g:gnomecvs:rwx ./refs/heads
-  fi
 elif [ $(hostname) == 'git.gnome.org' ]; then
-  if `git config gnome.gitlabrepo`; then
-    user=`id -u`
-    find ./objects -uid $user -type d | xargs setfacl -d -m g:git:rwx
-    find ./objects -uid $user | xargs setfacl -m g:git:rwx
-
-    if [ $user == 8033 ]; then
-        :
-    else
-        cat <<EOF 1>&2
+    cat <<EOF 1>&2
 ---
 The ${projectshort} repository has moved to Gitlab. Please update
 your Git remote to:
@@ -104,10 +89,7 @@ your Git remote to:
 
 ---
 EOF
-        exit 1
-    fi
-  fi
-fi
+    exit 1
 
 my_uid=`id -u`
 translations_uid=`id -u translations`


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