From: Erik Broes Date: Thu, 9 Apr 2009 19:58:52 +0000 (+0200) Subject: git-shell: Add 'git-upload-archive' to allowed commands. X-Git-Tag: v1.6.3-rc1~9^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=79f72b97633d1699f131e798bb9833339ba22f6a;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-shell.txt b/Documentation/git-shell.txt index 3f8d973af..0f3ad811c 100644 --- a/Documentation/git-shell.txt +++ b/Documentation/git-shell.txt @@ -18,9 +18,9 @@ of server-side GIT commands implementing the pull/push functionality. The commands can be executed only by the '-c' option; the shell is not interactive. -Currently, only three commands are permitted to be called, 'git-receive-pack' -'git-upload-pack' with a single required argument or 'cvs server' (to invoke -'git-cvsserver'). +Currently, only four commands are permitted to be called, 'git-receive-pack' +'git-upload-pack' and 'git-upload-archive' with a single required argument, or +'cvs server' (to invoke 'git-cvsserver'). Author ------ diff --git a/shell.c b/shell.c index e3393690d..b968be79f 100644 --- a/shell.c +++ b/shell.c @@ -40,6 +40,7 @@ static struct commands { } cmd_list[] = { { "git-receive-pack", do_generic_cmd }, { "git-upload-pack", do_generic_cmd }, + { "git-upload-archive", do_generic_cmd }, { "cvs", do_cvs_cmd }, { NULL }, };