]>
Commit | Line | Data |
---|---|---|
539e7506 EK |
1 | #!/bin/sh |
2 | # | |
3 | # Copyright (c) 2014 Ephrim Khong | |
4 | # | |
5 | ||
6 | test_description='repack involving cyclic alternate' | |
e75d2f7f ÆAB |
7 | |
8 | TEST_PASSES_SANITIZE_LEAK=true | |
539e7506 EK |
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 |