author | Linus Torvalds <torvalds@linux-foundation.org> | |
Fri, 26 Jan 2007 00:51:21 +0000 (16:51 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 26 Jan 2007 03:16:07 +0000 (19:16 -0800) | ||
commit | 1b555932cdb7f75239623573cd2ff25fa98ab4e4 | |
tree | 3cd342e77ecef95266e8bba684b5931ffbe9cd29 | tree | snapshot |
parent | 535514f1f3cd32dfe2cb4c70e97b41ea868d1134 | commit | diff |
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>
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 | diff | blob | history | |
t/t3210-pack-refs.sh | diff | blob | history |