aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaram@atc.tcs.com>2016-03-21 09:50:20 +0530
committerSitaram Chamarty <sitaram@atc.tcs.com>2016-03-21 10:38:51 +0530
commit98c167be486d3e175ebf61f9ffb86f5a11296670 (patch)
tree2bab7b0b8a5501222b6ad20fa20d8ff918be8d95
parentoops! perl version need not be that high; remove 'use' line (diff)
downloadgitolite-gentoo-98c167be486d3e175ebf61f9ffb86f5a11296670.tar.gz
gitolite-gentoo-98c167be486d3e175ebf61f9ffb86f5a11296670.tar.bz2
gitolite-gentoo-98c167be486d3e175ebf61f9ffb86f5a11296670.zip
oops; minor bug in tproxy
thanks to Robin Johnson for catching this. Note it only happens in one very very specific case: when no command is sent by the user at all (i.e., "ssh git@host", so even if you don't have this patch, the workaround is "ssh git@host info");
-rw-r--r--src/lib/Gitolite/Triggers/TProxy.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Gitolite/Triggers/TProxy.pm b/src/lib/Gitolite/Triggers/TProxy.pm
index 8cf0e8d..b2ab8df 100644
--- a/src/lib/Gitolite/Triggers/TProxy.pm
+++ b/src/lib/Gitolite/Triggers/TProxy.pm
@@ -95,3 +95,5 @@ sub input {
# redirect to upstream
exec( "ssh", $rc{TPROXY_FORWARDS_TO}, "TPROXY_FOR=$user", "SOC=$ENV{SSH_ORIGINAL_COMMAND}" );
}
+
+1;