summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-11-19 02:40:04 -0500
committerJunio C Hamano <gitster@pobox.com>2011-11-21 14:32:40 -0800
commit1bc01efed17c751e98fd6c5f9889759bfa9a8e9b (patch)
treed3c22123346cf9d31f09d49e5a8ead00dcf73fb1 /git.c
parentf56ef114eeefee755f422e6cbef2d83974cb90f1 (diff)
downloadgit-1bc01efed17c751e98fd6c5f9889759bfa9a8e9b.tar.gz
upload-archive: use start_command instead of forkjk/upload-archive-use-start-command
The POSIX-function fork is not supported on Windows. Use our start_command API instead, respawning ourselves in a special "writer" mode to follow the alternate code path. Remove the NOT_MINGW-prereq for t5000, as git-archive --remote now works. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
-rw-r--r--git.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/git.c b/git.c
index 8e34903a65..250f4483ea 100644
--- a/git.c
+++ b/git.c
@@ -434,6 +434,7 @@ static void handle_internal_command(int argc, const char **argv)
{ "update-ref", cmd_update_ref, RUN_SETUP },
{ "update-server-info", cmd_update_server_info, RUN_SETUP },
{ "upload-archive", cmd_upload_archive },
+ { "upload-archive--writer", cmd_upload_archive_writer },
{ "var", cmd_var, RUN_SETUP_GENTLY },
{ "verify-pack", cmd_verify_pack },
{ "verify-tag", cmd_verify_tag, RUN_SETUP },