diff options
author | Erik Faye-Lund <kusmabite@gmail.com> | 2011-10-24 18:02:11 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-30 18:45:21 -0700 |
commit | c09cd77ea2fe3580b33918a99fe138d239ac2aaf (patch) | |
tree | d55158b903d42f10a2b8a2004081d110ddac364a /compat | |
parent | compat/win32/poll.c: upgrade from upstream (diff) | |
download | tgif-c09cd77ea2fe3580b33918a99fe138d239ac2aaf.tar.xz |
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.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compat/mingw.h b/compat/mingw.h index fecf0d0776..dfb0e87263 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) |