diff --git a/src/gl-auth-command b/src/gl-auth-command index cc4b5f9..3f0ea3b 100755 --- a/src/gl-auth-command +++ b/src/gl-auth-command @@ -103,6 +103,7 @@ my ($verb, $repo) = ($cmd =~ /^\s*(git\s+\S+|\S+)\s+'\/?(.*?)(?:.git)?'/); die "bad command: $cmd. Make sure the repo name is exactly as in your config\n" unless ( $verb and ( $verb =~ $R_COMMANDS or $verb =~ $W_COMMANDS ) and $repo and $repo =~ $REPONAME_PATT ); +die "$repo ends with a slash; I don't like that\n" if $repo =~ /\/$/; # ---------------------------------------------------------------------------- # first level permissions check