upload-archive: use start_command instead of fork
authorErik Faye-Lund <kusmabite@gmail.com>
Mon, 24 Oct 2011 16:02:11 +0000 (18:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 31 Oct 2011 01:45:21 +0000 (18:45 -0700)
commitc09cd77ea2fe3580b33918a99fe138d239ac2aaf
treed55158b903d42f10a2b8a2004081d110ddac364a
parentf0bd664977b25e68c1230a533dd644706cff3ae2
upload-archive: use start_command instead of fork

The POSIX-function fork is not supported on Windows. Use our
start_command API instead.

As this is the last call-site that depends on the fork-stub in
compat/mingw.h, remove that as well.

Add an undocumented flag to git-archive that tells it that the
action originated from a remote, so features can be disabled.
Thanks to Jeff King for work on this part.

Remove the NOT_MINGW-prereq for t5000, as git-archive --remote
now works.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/archive.c
builtin/upload-archive.c
compat/mingw.h
t/t5000-tar-tree.sh