gc --auto: release pack files before auto packing
authorKim Gybels <kgybels@infogroep.be>
Mon, 9 Jul 2018 20:37:27 +0000 (22:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Jul 2018 21:16:10 +0000 (14:16 -0700)
commit12e73a3ce46135279cec8fc9ef0068948936e6f8
tree0789c3cfa823c147f3f380486c3a570f3a002ce9
parent53f9a3e157dbbc901a02ac2c73346d375e24978c
gc --auto: release pack files before auto packing

Teach gc --auto to release pack files before auto packing the repository
to prevent failures when removing them.

Also teach the test 'fetching with auto-gc does not lock up' to complain
when it is no longer triggering an auto packing of the repository.

Fixes https://github.com/git-for-windows/git/issues/500

Signed-off-by: Kim Gybels <kgybels@infogroep.be>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c
t/t5510-fetch.sh