Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-12-03 11:18:06 +0300
committerJunio C Hamano <gitster@pobox.com>2020-12-03 11:18:06 +0300
commitadae5df5d22d97888987d6e070a91a7b04289c6f (patch)
tree5fc7ceaec2b5c1d982dfab6f1f9ff39dcec2346e /send-pack.c
parent39d38a5c5f51ff2f4685bdc9f1af6f4cb0dcd33c (diff)
parent8b59935114d9dafd737a7674ccf3787e7ffc61c9 (diff)
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
Diffstat (limited to 'send-pack.c')
-rw-r--r--send-pack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/send-pack.c b/send-pack.c
index eb4a44270b..d2701bf35c 100644
--- a/send-pack.c
+++ b/send-pack.c
@@ -85,6 +85,7 @@ static int pack_objects(int fd, struct ref *refs, struct oid_array *extra, struc
po.in = -1;
po.out = args->stateless_rpc ? -1 : fd;
po.git_cmd = 1;
+ po.clean_on_exit = 1;
if (start_command(&po))
die_errno("git pack-objects failed");