(minor)
This commit is contained in:
parent
fd85ee2c91
commit
025de395dc
2 changed files with 4 additions and 9 deletions
|
@ -13,7 +13,6 @@ use warnings;
|
|||
# input: $1 is GL username, plus $SSH_ORIGINAL_COMMAND
|
||||
# output:
|
||||
# security:
|
||||
# - currently, we just make some basic checks, copied from gitosis
|
||||
|
||||
# robustness:
|
||||
|
||||
|
@ -168,9 +167,8 @@ if ($ENV{SSH_ORIGINAL_COMMAND} =~ $CUSTOM_COMMANDS) {
|
|||
|
||||
# side notes on detecting a normal git command: the pattern we check allows
|
||||
# old style as well as new style ("git-subcommand arg" or "git subcommand
|
||||
# arg"), just like gitosis does, although I'm not sure how necessary that is.
|
||||
# Currently, this is how git sends across the command (including the single
|
||||
# quotes):
|
||||
# arg"). Currently, this is how git sends across the command (including the
|
||||
# single quotes):
|
||||
# git-receive-pack 'reponame.git'
|
||||
|
||||
my ($verb, $repo) = ($ENV{SSH_ORIGINAL_COMMAND} =~ /^\s*(git\s+\S+|\S+)\s+'\/?(.*?)(?:\.git)?'/);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue