Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/gl-auth-command b/src/gl-auth-command
- index 60f0e40..ad16569 100755
- --- a/src/gl-auth-command
- +++ b/src/gl-auth-command
- @@ -122,7 +122,8 @@ if ($ENV{SSH_ORIGINAL_COMMAND} =~ $CUSTOM_COMMANDS) {
- # single quotes):
- # git-receive-pack 'reponame.git'
- -my ($verb, $repo) = ($ENV{SSH_ORIGINAL_COMMAND} =~ /^\s*(git\s+\S+|\S+)\s+'\/?(.*?)(?:\.git)?'/);
- +my ($verb, $repo) = ($ENV{SSH_ORIGINAL_COMMAND} =~ /^\s*((?:git\s+\S+|\S+)(?:\s+--\S+)?)\s+'\/?(.*?)(?:\.git)?'/);
- +$verb =~ s/\s+--quiet$//;
- unless ( $verb and ( $verb eq 'git-init' or $verb =~ $R_COMMANDS or $verb =~ $W_COMMANDS ) and $repo and $repo =~ $REPONAME_PATT ) {
- special_cmd ($shell_allowed);
- exit 0;
Add Comment
Please, Sign In to add comment