Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Clear fd after closing to avoid double-close error
[gitweb.git]
/
fetch-pack.c
diff --git
a/fetch-pack.c
b/fetch-pack.c
index f5d99c11813b1ae2eee0bb7dfd94eab60c721b64..29b711a98b029152a087f280308e04cc51a1b81f 100644
(file)
--- a/
fetch-pack.c
+++ b/
fetch-pack.c
@@
-776,6
+776,10
@@
static int get_pack(struct fetch_pack_args *args,
close(cmd.out);
}
+ if (!use_sideband)
+ /* Closed by start_command() */
+ xd[0] = -1;
+
ret = finish_command(&cmd);
if (!ret || (args->check_self_contained_and_connected && ret == 1))
args->self_contained_and_connected =