We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df54e2b + 80b5b69 commit e9c1a3aCopy full SHA for e9c1a3a
builtin/send-pack.c
@@ -229,6 +229,9 @@ static void print_helper_status(struct ref *ref)
229
static int sideband_demux(int in, int out, void *data)
230
{
231
int *fd = data;
232
+#ifdef NO_PTHREADS
233
+ close(fd[1]);
234
+#endif
235
int ret = recv_sideband("send-pack", fd[0], out);
236
close(out);
237
return ret;
@@ -339,6 +342,8 @@ int send_pack(struct send_pack_args *args,
339
342
if (pack_objects(out, remote_refs, extra_have, args) < 0) {
340
343
for (ref = remote_refs; ref; ref = ref->next)
341
344
ref->status = REF_STATUS_NONE;
345
+ if (args->stateless_rpc)
346
+ close(out);
347
if (use_sideband)
348
finish_async(&demux);
349
return -1;
0 commit comments