The eleventh batch
[git/gitster.git] / t / t7702-repack-cyclic-alternate.sh
blobd151d4f6036e92906ca887fa17d9ffcd8f89cc22
1 #!/bin/sh
3 # Copyright (c) 2014 Ephrim Khong
6 test_description='repack involving cyclic alternate'
8 TEST_PASSES_SANITIZE_LEAK=true
9 . ./test-lib.sh
11 test_expect_success setup '
12 GIT_OBJECT_DIRECTORY=.git//../.git/objects &&
13 export GIT_OBJECT_DIRECTORY &&
14 touch a &&
15 git add a &&
16 git commit -m 1 &&
17 git repack -adl &&
18 echo "$(pwd)"/.git/objects/../objects >.git/objects/info/alternates
21 test_expect_success 're-packing repository with itself as alternate' '
22 git repack -adl &&
23 git fsck
26 test_done