Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t7702-repack-cyclic-alternate.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t7702-repack-cyclic-alternate.sh` 25 lines ยท 479 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # Copyright (c) 2014 Ephrim Khong 4 # 5 6 test_description='repack involving cyclic alternate' 7 8 . ./test-lib.sh 9 10 test_expect_success setup ' 11 GIT_OBJECT_DIRECTORY=.git//../.git/objects && 12 export GIT_OBJECT_DIRECTORY && 13 touch a && 14 git add a && 15 git commit -m 1 && 16 git repack -adl && 17 echo "$(pwd)"/.git/objects/../objects >.git/objects/info/alternates 18 ' 19 20 test_expect_success 're-packing repository with itself as alternate' ' 21 git repack -adl && 22 git fsck 23 ' 24 25 test_done