We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a8f4c8 + 243caa8 commit 2509d01Copy full SHA for 2509d01
t/t5314-pack-cycle-detection.sh
@@ -63,13 +63,16 @@ TEST_PASSES_SANITIZE_LEAK=true
63
# Note that the two variants of "file" must be similar enough to convince git
64
# to create the delta.
65
make_pack () {
66
- {
67
- printf '%s\n' "-$(git rev-parse $2)"
68
- printf '%s dummy\n' "$(git rev-parse $1:dummy)"
69
- printf '%s file\n' "$(git rev-parse $1:file)"
70
- } |
71
- git pack-objects --stdout |
72
- git index-pack --stdin --fix-thin
+ ln1=$(git rev-parse "$2") &&
+ ln2=$(git rev-parse "$1:dummy") &&
+ ln3=$(git rev-parse "$1:file") &&
+ cat >list <<-EOF
+ -$ln1
+ $ln2 dummy
+ $ln3 file
73
+ EOF
74
+ git pack-objects --stdout <list >pack &&
75
+ git index-pack --stdin --fix-thin <pack
76
}
77
78
test_expect_success 'setup' '
0 commit comments