[sysadmin-bin] GIT_DIR is always going to be the working directory whenever git hooks are executed
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] GIT_DIR is always going to be the working directory whenever git hooks are executed
- Date: Fri, 1 Dec 2017 13:35:32 +0000 (UTC)
commit 5632cf05e554e9e7c47d318f3f264ba990951b7e
Author: Andrea Veri <averi redhat com>
Date: Fri Dec 1 14:35:21 2017 +0100
GIT_DIR is always going to be the working directory whenever git hooks are executed
git/gnome-pre-receive | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/git/gnome-pre-receive b/git/gnome-pre-receive
index ad5fe43..943b08f 100755
--- a/git/gnome-pre-receive
+++ b/git/gnome-pre-receive
@@ -78,20 +78,20 @@ if [ $(hostname) == 'gitlab.gnome.org' ]; then
git config gnome.gitlabrepo true
fi
- sudo setfacl -d -R -m g:gnomecvs:rwx $GIT_DIR/objects
- sudo setfacl -R -m g:gnomecvs:rwx $GIT_DIR/objects
- sudo setfacl -d -R -m g:gnomecvs:rwx $GIT_DIR/refs/heads
- sudo setfacl -R -m g:gnomecvs:rwx $GIT_DIR/refs/heads
+ 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
setfacl -d -R -m g:gnomecvs:rwx $GIT_DIR
setfacl -R -m g:gnomecvs:rwx $GIT_DIR
fi
elif [ $(hostname) == 'git.gnome.org' ]; then
if `git config gnome.gitlabrepo`; then
user=`id -u`
- find $GIT_DIR/objects -uid $user -type d | xargs setfacl -d -m g:git:rwx
- find $GIT_DIR/objects -uid $user | xargs setfacl -m g:git:rwx
- find $GIT_DIR/refs/heads -uid $user -type d | xargs setfacl -d -m g:git:rwx
- find $GIT_DIR/refs/heads -uid $user | xargs setfacl -m g:git:rwx
+ find ./objects -uid $user -type d | xargs setfacl -d -m g:git:rwx
+ find ./objects -uid $user | xargs setfacl -m g:git:rwx
+ find ./refs/heads -uid $user -type d | xargs setfacl -d -m g:git:rwx
+ find ./refs/heads -uid $user | xargs setfacl -m g:git:rwx
if [ $user == 8033 ]; then
:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]