Merge branch 'bc/hash-algo'
[git] / t / t7702-repack-cyclic-alternate.sh
1 #!/bin/sh
2 #
3 # Copyright (c) 2014 Ephrim Khong
4 #
5
6 test_description='repack involving cyclic alternate'
7 . ./test-lib.sh
8
9 test_expect_success setup '
10         GIT_OBJECT_DIRECTORY=.git//../.git/objects &&
11         export GIT_OBJECT_DIRECTORY &&
12         touch a &&
13         git add a &&
14         git commit -m 1 &&
15         git repack -adl &&
16         echo "$(pwd)"/.git/objects/../objects >.git/objects/info/alternates
17 '
18
19 test_expect_success 're-packing repository with itsself as alternate' '
20         git repack -adl &&
21         git fsck
22 '
23
24 test_done