am: release pack files before garbage-collecting
commitdf617b529e9ebf01cde572b8f78f4dd8bc6c010b
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 13 Jan 2016 17:20:16 +0000 (13 18:20 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Jan 2016 19:36:28 +0000 (13 11:36 -0800)
treead8f9fe04ee3e3734cf1ddb7fd0b67452b073b8d
parent0898c96281044a1130f1a777660aaf17e782c4f6
am: release pack files before garbage-collecting

Before auto-gc'ing, we need to make sure that the pack files are
released in case they need to be repacked and garbage-collected.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/am.c