]> git.ipfire.org Git - thirdparty/git.git/blob - t/t7702-repack-cyclic-alternate.sh
Sync with Git 2.45.1
[thirdparty/git.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
8 TEST_PASSES_SANITIZE_LEAK=true
9 . ./test-lib.sh
10
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
19 '
20
21 test_expect_success 're-packing repository with itsself as alternate' '
22 git repack -adl &&
23 git fsck
24 '
25
26 test_done