@matheusbsbs / matheus-bagliano / commits / 79f72b9763
Fork 0

git-shell: Add 'git-upload-archive' to allowed commands.

This allows for example gitosis to allow use of 'git archive --remote' in a controlled environment. Signed-off-by: Erik Broes <erikbroes@ripe.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Erik Broes committed Apr 9, 2009 at 21:58 UTC 79f72b97633d1699f131e798bb9833339ba22f6a
2 files changed +4 -3
Documentation/git-shell.txt
+3 -3
@@ -18,9 +18,9 @@ of server-side GIT commands implementing the pull/push functionality.
18 The commands can be executed only by the '-c' option; the shell is not
19 interactive.
20
21 -Currently, only three commands are permitted to be called, 'git-receive-pack'
22 -'git-upload-pack' with a single required argument or 'cvs server' (to invoke
23 -'git-cvsserver').
21 +Currently, only four commands are permitted to be called, 'git-receive-pack'
22 +'git-upload-pack' and 'git-upload-archive' with a single required argument, or
23 +'cvs server' (to invoke 'git-cvsserver').
24
25 Author
26 ------
shell.c
+1
@@ -40,6 +40,7 @@ static struct commands {
40 } cmd_list[] = {
41 { "git-receive-pack", do_generic_cmd },
42 { "git-upload-pack", do_generic_cmd },
43 + { "git-upload-archive", do_generic_cmd },
44 { "cvs", do_cvs_cmd },
45 { NULL },
46 };