summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorErik Faye-Lund <kusmabite@gmail.com>2011-10-24 16:02:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-10-31 01:45:21 (GMT)
commitc09cd77ea2fe3580b33918a99fe138d239ac2aaf (patch)
treed55158b903d42f10a2b8a2004081d110ddac364a /compat
parentf0bd664977b25e68c1230a533dd644706cff3ae2 (diff)
downloadgit-c09cd77ea2fe3580b33918a99fe138d239ac2aaf.zip
git-c09cd77ea2fe3580b33918a99fe138d239ac2aaf.tar.gz
git-c09cd77ea2fe3580b33918a99fe138d239ac2aaf.tar.bz2
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>
Diffstat (limited to 'compat')
-rw-r--r--compat/mingw.h2
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)