diff options
author | Johannes Sixt <johannes.sixt@telecom.at> | 2007-12-08 22:19:14 +0100 |
---|---|---|
committer | Johannes Sixt <johannes.sixt@telecom.at> | 2008-06-26 08:45:08 +0200 |
commit | 618ebe9ff997d27714487c4a4232720be240badc (patch) | |
tree | 407a0efd989568bcadf3acbd195fd7aa3d5e4c86 /upload-pack.c | |
parent | be501813d25bedc1a441940f349fb91bd9fa4ef6 (diff) | |
download | git-618ebe9ff997d27714487c4a4232720be240badc.tar.gz |
Windows: Implement asynchronous functions as threads.
In upload-pack we must explicitly close the output channel of rev-list.
(On Unix, the channel is closed automatically because process that runs
rev-list terminates.)
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Diffstat (limited to 'upload-pack.c')
-rw-r--r-- | upload-pack.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/upload-pack.c b/upload-pack.c index b46dd365ea..9f82941f8b 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -135,6 +135,8 @@ static int do_rev_list(int fd, void *create_full_pack) die("revision walk setup failed"); mark_edges_uninteresting(revs.commits, &revs, show_edge); traverse_commit_list(&revs, show_commit, show_object); + fflush(pack_pipe); + fclose(pack_pipe); return 0; } |