aboutsummaryrefslogtreecommitdiff
path: root/t/t5302-pack-index.sh
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-02-01 22:17:18 +0700
committerJunio C Hamano <gitster@pobox.com>2012-02-01 13:03:46 -0800
commit6a301345a545ce5faf1a054d6c9bf1558dd46b0d (patch)
treef1d6dd8f936d5a9c6c10745156a2f9185a8aa295 /t/t5302-pack-index.sh
parent828ea97de486c1693d6e4f2c7347acb50235a85d (diff)
downloadgit-6a301345a545ce5faf1a054d6c9bf1558dd46b0d.tar.gz
git-6a301345a545ce5faf1a054d6c9bf1558dd46b0d.tar.xz
pack-objects: do not accept "--index-version=version,"
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5302-pack-index.sh')
-rwxr-xr-xt/t5302-pack-index.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t5302-pack-index.sh b/t/t5302-pack-index.sh
index f8fa92446..fe82025d4 100755
--- a/t/t5302-pack-index.sh
+++ b/t/t5302-pack-index.sh
@@ -74,6 +74,10 @@ test_expect_success 'index-pack --verify on index version 2' '
'
test_expect_success \
+ 'pack-objects --index-version=2, is not accepted' \
+ 'test_must_fail git pack-objects --index-version=2, test-3 <obj-list'
+
+test_expect_success \
'index v2: force some 64-bit offsets with pack-objects' \
'pack3=$(git pack-objects --index-version=2,0x40000 test-3 <obj-list)'