diff options
author | Nelson Elhage <nelhage@ksplice.com> | 2010-08-12 18:18:12 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-08-13 00:26:05 +0400 |
commit | 6e2a09d24b2634cdfec3395122cd4a07eb517b0d (patch) | |
tree | ae449e38f0318eda974a772a283f468203e726a0 /t/t6050-replace.sh | |
parent | b5e233ecc411c8685463333d180a135c6866c50e (diff) |
index-pack: Don't follow replace refs.
Without this, attempting to index a pack containing objects that have been
replaced results in a fatal error that looks like:
fatal: SHA1 COLLISION FOUND WITH <replaced-object> !
Signed-off-by: Nelson Elhage <nelhage@ksplice.com>
Acked-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6050-replace.sh')
-rwxr-xr-x | t/t6050-replace.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t6050-replace.sh b/t/t6050-replace.sh index 203ffdb17a..4185b7ca1d 100755 --- a/t/t6050-replace.sh +++ b/t/t6050-replace.sh @@ -219,6 +219,12 @@ test_expect_success 'bisect and replacements' ' git bisect reset ' +test_expect_success 'index-pack and replacements' ' + git --no-replace-objects rev-list --objects HEAD | + git --no-replace-objects pack-objects test- && + git index-pack test-*.pack +' + # # test_done |