From 94ac084d9dc130d9bbee2b9abfe4ea154a6a8439 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sat, 17 Sep 2016 20:14:35 +0200 Subject: git-serve: Add support for setting co-maintainers Add support for changing co-maintainers from the SSH interface. The syntax is `set-comaintainers ...`. Signed-off-by: Lukas Fleischer --- git-interface/git-serve.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/git-interface/git-serve.py b/git-interface/git-serve.py index 9959934d..47e7df9a 100755 --- a/git-interface/git-serve.py +++ b/git-interface/git-serve.py @@ -374,6 +374,13 @@ elif action == 'disown': pkgbase = cmdargv[1] pkgbase_disown(pkgbase) +elif action == 'set-comaintainers': + if len(cmdargv) < 2: + die_with_help("{:s}: missing repository name".format(action)) + + pkgbase = cmdargv[1] + userlist = cmdargv[2:] + pkgbase_set_comaintainers(pkgbase, userlist) elif action == 'help': cmds = { "adopt ": "Adopt a package base.", @@ -381,6 +388,7 @@ elif action == 'help': "help": "Show this help message and exit.", "list-repos": "List all your repositories.", "restore ": "Restore a deleted package base.", + "set-comaintainers [...]": "Set package base co-maintainers.", "set-keywords [...]": "Change package base keywords.", "setup-repo ": "Create a repository (deprecated).", "git-receive-pack": "Internal command used with Git.", -- cgit v1.2.3-24-g4f1b