Skip to content

Commit adae5df

Browse files
committed
Merge branch 'jk/stop-pack-objects-when-push-is-killed'
"git push" that is killed may leave a pack-objects process behind, still computing to find a good compression, wasting cycles. This has been corrected. * jk/stop-pack-objects-when-push-is-killed: send-pack: kill pack-objects helper on signal or exit
2 parents 39d38a5 + 8b59935 commit adae5df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

send-pack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ static int pack_objects(int fd, struct ref *refs, struct oid_array *extra, struc
8585
po.in = -1;
8686
po.out = args->stateless_rpc ? -1 : fd;
8787
po.git_cmd = 1;
88+
po.clean_on_exit = 1;
8889
if (start_command(&po))
8990
die_errno("git pack-objects failed");
9091

0 commit comments

Comments
 (0)