Code

Fix seriously broken "git pack-refs"
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Jan 2007 00:51:21 +0000 (16:51 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 26 Jan 2007 03:16:07 +0000 (19:16 -0800)
commit1b555932cdb7f75239623573cd2ff25fa98ab4e4
tree3cd342e77ecef95266e8bba684b5931ffbe9cd29
parent535514f1f3cd32dfe2cb4c70e97b41ea868d1134
Fix seriously broken "git pack-refs"

Do *NOT* try this on a repository you care about:

git pack-refs --all --prune
git pack-refs

because while the first "pack-refs" does the right thing, the second
pack-refs will totally screw you over.

This is because the second one tries to pack only tags; we should
also pack what are already packed -- otherwise we would lose them.

[jc: with an additional test]

Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-pack-refs.c
t/t3210-pack-refs.sh