Commit df6bb728 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

git-serve: Support `git {receive,upload}-pack`

Add support for the `git receive-pack` and `git upload-pack` commands
which are aliases for git-receive-pack and git-upload-pack,

Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <>
parent 5766a37e
......@@ -305,6 +305,10 @@ def main():
if remote_addr not in maintenance_exc:
die("The AUR is down due to maintenance. We will be back soon.")
if action == 'git' and cmdargv[1] in ('upload-pack', 'receive-pack'):
action = action + '-' + cmdargv[1]
del cmdargv[1]
if action == 'git-upload-pack' or action == 'git-receive-pack':
if len(cmdargv) < 2:
die_with_help("{:s}: missing path".format(action))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment