Merge branch 'master' of git://repo.or.cz/alt-git
[git/mingw.git] / t / t7702-repack-cyclic-alternate.sh
blob93b74867ac8f005fa3ef7831b066d236f18dfb12
1 #!/bin/sh
3 # Copyright (c) 2014 Ephrim Khong
6 test_description='repack involving cyclic alternate'
7 . ./test-lib.sh
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
19 test_expect_success 're-packing repository with itsself as alternate' '
20 git repack -adl &&
21 git fsck
24 test_done