From 35ac0937421bfdce4e4c6069285a9c9f3f8820f0 Mon Sep 17 00:00:00 2001 From: Georges Discry Date: Fri, 2 Dec 2011 02:13:13 +0100 Subject: [PATCH] add GL_REPO to the environment variables When a slave receives a mirror push (git-receive-pack), set the GL_REPO environment variable so that custom hooks can use it. --- src/gl-mirror-shell | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gl-mirror-shell b/src/gl-mirror-shell index f326e18..d2b6489 100755 --- a/src/gl-mirror-shell +++ b/src/gl-mirror-shell @@ -118,6 +118,7 @@ if ($soc =~ /^git-receive-pack '(\S+)'$/) { print STDERR "$GL_HOSTNAME <=== ($repo) ==== $sender\n"; $ENV{GL_BYPASS_UPDATE_HOOK} = 1; + $ENV{GL_REPO} = $repo; # replace the repo path with the full path and hand off to git-shell $soc =~ s(')('$ENV{GL_REPO_BASE_ABS}/); exec("git", "shell", "-c", $soc);