[sysadmin-bin] Disable pre-receive hooks on repositories that are not part of the GNOME group
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Disable pre-receive hooks on repositories that are not part of the GNOME group
- Date: Tue, 7 Nov 2017 11:08:43 +0000 (UTC)
commit 3850ec8dec28f6d3a72c49a8aaa47705afe0da1f
Author: Andrea Veri <averi redhat com>
Date: Tue Nov 7 12:08:28 2017 +0100
Disable pre-receive hooks on repositories that are not part of the GNOME group
git/gnome-pre-receive | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/git/gnome-pre-receive b/git/gnome-pre-receive
index fba7b96..cfbd6f2 100755
--- a/git/gnome-pre-receive
+++ b/git/gnome-pre-receive
@@ -107,7 +107,9 @@ while read oldrev newrev refname; do
# to bypass if l10.gnome.org were compromised.
[ $my_uid != $translations_uid ] || $BINDIR/pre-receive-check-translations $oldrev $newrev $refname ||
exit 1
- $BINDIR/pre-receive-check-policy $oldrev $newrev $refname || exit 1
- $BINDIR/pre-receive-check-maintainers $oldrev $newrev $refname || exit 1
- $BINDIR/pre-receive-check-po $oldrev $newrev $refname || exit 1
+ if [[ $basedir = '/var/opt/gitlab/git-data/repositories/GNOME' || $basedir = '/git' ]]; then
+ $BINDIR/pre-receive-check-policy $oldrev $newrev $refname || exit 1
+ $BINDIR/pre-receive-check-maintainers $oldrev $newrev $refname || exit 1
+ $BINDIR/pre-receive-check-po $oldrev $newrev $refname || exit 1
+ fi
done
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]