Guest User

Untitled

a guest
Dec 12th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. diff --git a/src/gl-auth-command b/src/gl-auth-command
  2. index 60f0e40..ad16569 100755
  3. --- a/src/gl-auth-command
  4. +++ b/src/gl-auth-command
  5. @@ -122,7 +122,8 @@ if ($ENV{SSH_ORIGINAL_COMMAND} =~ $CUSTOM_COMMANDS) {
  6. # single quotes):
  7. # git-receive-pack 'reponame.git'
  8.  
  9. -my ($verb, $repo) = ($ENV{SSH_ORIGINAL_COMMAND} =~ /^\s*(git\s+\S+|\S+)\s+'\/?(.*?)(?:\.git)?'/);
  10. +my ($verb, $repo) = ($ENV{SSH_ORIGINAL_COMMAND} =~ /^\s*((?:git\s+\S+|\S+)(?:\s+--\S+)?)\s+'\/?(.*?)(?:\.git)?'/);
  11. +$verb =~ s/\s+--quiet$//;
  12. unless ( $verb and ( $verb eq 'git-init' or $verb =~ $R_COMMANDS or $verb =~ $W_COMMANDS ) and $repo and $repo =~ $REPONAME_PATT ) {
  13. special_cmd ($shell_allowed);
  14. exit 0;
Add Comment
Please, Sign In to add comment