From 2b1b818dc13ad5a2eb2f6cf835a47ad48f160ae1 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Thu, 13 Mar 2014 09:06:09 +0000 Subject: mgagit: Make the repository update hook more generic to cover all repo groups --- deployment/mgagit/templates/git-post-update-hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deployment/mgagit/templates') diff --git a/deployment/mgagit/templates/git-post-update-hook b/deployment/mgagit/templates/git-post-update-hook index 49cd0a1c..a2550ad3 100644 --- a/deployment/mgagit/templates/git-post-update-hook +++ b/deployment/mgagit/templates/git-post-update-hook @@ -1,6 +1,6 @@ #!/bin/bash -if [ "$GL_REPO" == "infrastructure/repositories/software" -o "$GL_REPO" == "infrastructure/repositories/web" ]; then +if [ "${GL_REPO:0:28}" == "infrastructure/repositories/" ]; then OK=no (unset GIT_DIR && mgagit glconf && mgagit glrun) >/dev/null 2>&1 && OK=yes if [ "$OK" == "yes" ]; then -- cgit v1.2.1