aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaram@atc.tcs.com>2015-05-27 05:29:59 +0530
committerSitaram Chamarty <sitaram@atc.tcs.com>2015-05-27 05:48:43 +0530
commitfc8cdf0ad13d4bcdf8a885c2ecb8ebf99a1daf45 (patch)
treeb609d86c34e6f401ae2e2cec4d54665a50cc5cfe
parent'who-pushed' learns super-efficient 'tip search' (diff)
downloadgitolite-gentoo-fc8cdf0ad13d4bcdf8a885c2ecb8ebf99a1daf45.tar.gz
gitolite-gentoo-fc8cdf0ad13d4bcdf8a885c2ecb8ebf99a1daf45.tar.bz2
gitolite-gentoo-fc8cdf0ad13d4bcdf8a885c2ecb8ebf99a1daf45.zip
make single quotes around reponame optional...
apparently the git client, when using ext:: transports, does not send those quotes https://groups.google.com/forum/#!topic/gitolite/x8rUaxJU0iM
-rwxr-xr-xsrc/gitolite-shell2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gitolite-shell b/src/gitolite-shell
index e0bc090..d9ec01f 100755
--- a/src/gitolite-shell
+++ b/src/gitolite-shell
@@ -153,7 +153,7 @@ sub parse_soc {
$soc ||= 'info';
my $git_commands = "git-upload-pack|git-receive-pack|git-upload-archive";
- if ( $soc =~ m(^($git_commands) '/?(.*?)(?:\.git(\d)?)?'$) ) {
+ if ( $soc =~ m(^($git_commands) '?/?(.*?)(?:\.git(\d)?)?'?$) ) {
my ( $verb, $repo, $trace_level ) = ( $1, $2, $3 );
$ENV{D} = $trace_level if $trace_level;
_die "invalid repo name: '$repo'" if $repo !~ $REPONAME_PATT;