Prepare testsuite for a "git clone" that packs refs
authorJohan Herland <johan@herland.net>
Sun, 15 Jun 2008 23:16:53 +0000 (01:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Jun 2008 22:53:13 +0000 (15:53 -0700)
commitd0d12b476822bb8686ee883bd44b799563069a48
tree5d88f91e98962c025850f6c2adc50617611c89f4
parent94e724a741590e741a540075c07a961082e3c80a
Prepare testsuite for a "git clone" that packs refs

t5515-fetch-merge-logic removes many, but not all, refs between each test.
This is done by removing the corresponding refs/foo/* files in the .git/refs
hierarchy. However, once "git clone" starts producing packed refs, these refs
will no longer be in the .git/refs hierarchy, but rather listed in
.git/packed-refs. This patch teaches t5515-fetch-merge-logic to remove the
refs using "git update-ref -d" which properly handles packed refs.

Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5515-fetch-merge-logic.sh