path: root/compat
diff options
authorErik Faye-Lund <>2011-10-24 16:02:11 (GMT)
committerJunio C Hamano <>2011-10-31 01:45:21 (GMT)
commitc09cd77ea2fe3580b33918a99fe138d239ac2aaf (patch)
treed55158b903d42f10a2b8a2004081d110ddac364a /compat
parentf0bd664977b25e68c1230a533dd644706cff3ae2 (diff)
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 <> Helped-by: Jeff King <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'compat')
1 files changed, 0 insertions, 2 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index fecf0d0..dfb0e87 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -85,8 +85,6 @@ static inline int symlink(const char *oldpath, const char *newpath)
{ errno = ENOSYS; return -1; }
static inline int fchmod(int fildes, mode_t mode)
{ errno = ENOSYS; return -1; }
-static inline pid_t fork(void)
-{ errno = ENOSYS; return -1; }
static inline unsigned int alarm(unsigned int seconds)
{ return 0; }
static inline int fsync(int fd)