Merge branch 'ml/doc-merge-updates' into maint-2.43
[alt-git.git] / t / t7702-repack-cyclic-alternate.sh
blobf3cdb98eec26b8b2d8cd138d6740a77802f84ae4
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 itsself as alternate' '
22 git repack -adl &&
23 git fsck
26 test_done