aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/gitolite-shell4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gitolite-shell b/src/gitolite-shell
index d9ec01f..2f49479 100755
--- a/src/gitolite-shell
+++ b/src/gitolite-shell
@@ -109,6 +109,10 @@ sub main {
# set up the repo and the attempted access
my ( $verb, $repo ) = parse_soc(); # returns only for git commands
+
+ # remove trailing slash, if any
+ $repo =~ s(/$)();
+
Gitolite::Conf::Load::sanity($repo, $REPONAME_PATT);
$ENV{GL_REPO} = $repo;
my $aa = ( $verb =~ 'upload' ? 'R' : 'W' );