repack: retain the return value of pack-objects
commitffc9329f48cb05ab44592e75e2dac4cfb7951c00
authorStefan Beller <stefanbeller@googlemail.com>
Sun, 15 Sep 2013 15:33:21 +0000 (15 17:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Sep 2013 20:34:56 +0000 (17 13:34 -0700)
tree9b04419bfb92b7f86d2884b1eea66b16e024f019
parenta1bbc6c0176f1fa2d4aa571cc0183a1f0ff9b285
repack: retain the return value of pack-objects

During the review process of the previous commit (repack: rewrite the
shell script in C), Johannes Sixt proposed to retain any exit codes from
the sub-process, which makes it probably more obvious in case of failure.

As the commit before should behave as close to the original shell
script, the proposed change is put in this extra commit.
The infrastructure however was already setup in the previous commit.
(Having a local 'ret' variable)

Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/repack.c