diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2016-10-01 21:48:14 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2016-10-01 21:50:52 +0200 |
commit | df6bb72807408bc0eab59e729ea8c0b69fe39388 (patch) | |
tree | c4ce7d36efd065017b1ccfdbcd79bb21b206f819 | |
parent | 5766a37e4ad2e41377f5eeae1240ceab4cf6e63f (diff) | |
download | aur-df6bb72807408bc0eab59e729ea8c0b69fe39388.tar.gz aur-df6bb72807408bc0eab59e729ea8c0b69fe39388.tar.xz |
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,
respectively.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rwxr-xr-x | git-interface/git-serve.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/git-interface/git-serve.py b/git-interface/git-serve.py index 5f3b26dd..ebfef946 100755 --- a/git-interface/git-serve.py +++ b/git-interface/git-serve.py @@ -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)) |