From fc8cdf0ad13d4bcdf8a885c2ecb8ebf99a1daf45 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Wed, 27 May 2015 05:29:59 +0530 Subject: [PATCH] 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 --- src/gitolite-shell | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.4.GIT