aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaram@atc.tcs.com>2015-02-07 12:14:06 +0530
committerSitaram Chamarty <sitaram@atc.tcs.com>2015-02-07 12:14:06 +0530
commit346b1324b4bcf854f8aba8af575f4ae238db812b (patch)
treeb62690854ed78274c91e952918d09a8677d3e32c
parentinfo: get description from the 'gitweb.description' (diff)
downloadgitolite-gentoo-346b1324b4bcf854f8aba8af575f4ae238db812b.tar.gz
gitolite-gentoo-346b1324b4bcf854f8aba8af575f4ae238db812b.tar.bz2
gitolite-gentoo-346b1324b4bcf854f8aba8af575f4ae238db812b.zip
fix ugliness in http output when only base URL is given
-rwxr-xr-xsrc/gitolite-shell1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gitolite-shell b/src/gitolite-shell
index 879da54..e299ad2 100755
--- a/src/gitolite-shell
+++ b/src/gitolite-shell
@@ -67,6 +67,7 @@ sub in_http {
# fake out SSH_ORIGINAL_COMMAND and SSH_CONNECTION when called via http,
# so the rest of the code stays the same (except the exec at the end).
http_simulate_ssh_connection();
+ $ENV{SSH_ORIGINAL_COMMAND} ||= '';
$ENV{REMOTE_USER} ||= $rc{HTTP_ANON_USER};
@ARGV = ( $ENV{REMOTE_USER} );