Merge branch 'sg/t5310-jgit-bitmap-test'
authorJunio C Hamano <gitster@pobox.com>
Wed, 23 May 2018 05:38:11 +0000 (14:38 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 May 2018 05:38:12 +0000 (14:38 +0900)
Test update.

* sg/t5310-jgit-bitmap-test:
t5310-pack-bitmaps: make JGit tests work with GIT_TEST_SPLIT_INDEX

1  2 
t/t5310-pack-bitmaps.sh
diff --combined t/t5310-pack-bitmaps.sh
index f6d600fd82fd499a80f67f0a4ff1a60b4a1db1b5,1cb798ddb55624eda3429d4a4e19bc89913c4ea2..423c0a475f7e87b4c32abf60ef85ccbb898eca11
@@@ -264,9 -264,9 +264,9 @@@ test_expect_success 'pack with missing 
  '
  
  test_expect_success JGIT 'we can read jgit bitmaps' '
-       git clone . compat-jgit &&
+       git clone --bare . compat-jgit.git &&
        (
-               cd compat-jgit &&
+               cd compat-jgit.git &&
                rm -f .git/objects/pack/*.bitmap &&
                jgit gc &&
                git rev-list --test-bitmap HEAD
  '
  
  test_expect_success JGIT 'jgit can read our bitmaps' '
-       git clone . compat-us &&
+       git clone --bare . compat-us.git &&
        (
-               cd compat-us &&
+               cd compat-us.git &&
                git repack -adb &&
                # jgit gc will barf if it does not like our bitmaps
                jgit gc
  '
  
  test_expect_success 'splitting packs does not generate bogus bitmaps' '
 -      test-genrandom foo $((1024 * 1024)) >rand &&
 +      test-tool genrandom foo $((1024 * 1024)) >rand &&
        git add rand &&
        git commit -m "commit with big file" &&
        git -c pack.packSizeLimit=500k repack -adb &&