summaryrefslogtreecommitdiff
path: root/per-service
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2016-05-27 12:23:40 -0500
committerAndy Doan <andy.doan@linaro.org>2016-05-31 13:39:36 +0000
commitd4bf2b85175cbf4f588b72df34f1dc1248088154 (patch)
tree557078060386c6044a4efef3a9c1aa83f76ceb77 /per-service
parent18e3f9acfc3bf242cfea0331e871cc42e3aaf9dd (diff)
downloadansible-playbooks-d4bf2b85175cbf4f588b72df34f1dc1248088154.tar.gz
gerrit: don't update grok manifest with gitolite-admin
This repo gets skipped when pushing via gitolite, but gets added to our manifest when we do code reviews. Then our regional mirrors try to clone the repo, but can't and complain. Change-Id: I0b68aa0e819afab5f248ef5397b7f105a967a1d8 Reviewed-on: https://review.linaro.org/12283 Reviewed-by: Paul Sokolovsky <paul.sokolovsky@linaro.org> Reviewed-by: Ben Copeland <ben.copeland@linaro.org>
Diffstat (limited to 'per-service')
-rw-r--r--per-service/git-servers/roles/grokmirror/templates/gerrit-ref-updated4
1 files changed, 4 insertions, 0 deletions
diff --git a/per-service/git-servers/roles/grokmirror/templates/gerrit-ref-updated b/per-service/git-servers/roles/grokmirror/templates/gerrit-ref-updated
index 65fb7cc..9a33e54 100644
--- a/per-service/git-servers/roles/grokmirror/templates/gerrit-ref-updated
+++ b/per-service/git-servers/roles/grokmirror/templates/gerrit-ref-updated
@@ -19,6 +19,10 @@ exec >>${GROK_MANIFEST_LOG} 2>&1
# gerrit calls us with GIT_DIR set, so we just need to extract the project
# portion (with no leading slashes)
repo=${GIT_DIR#${GERRIT_GIT}/}
+if [ $repo == "gitolite-admin.git" ] ; then
+ echo "$(date) skipping gitolite-admin hook"
+ exit 0
+fi
echo "$(date): $0 called with $*"
echo "$(date): repo changed: $repo"