File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -533,19 +533,26 @@ test_expect_success 'test --all wrt tag to non-commits' '
533
533
# are reachable only via created tag references.
534
534
blob=$(echo "hello blob" | git hash-object -t blob -w --stdin) &&
535
535
git tag -a -m "tag -> blob" tag-to-blob $blob &&
536
- \
536
+
537
537
tree=$(printf "100644 blob $blob\tfile" | git mktree) &&
538
538
git tag -a -m "tag -> tree" tag-to-tree $tree &&
539
- \
539
+
540
540
tree2=$(printf "100644 blob $blob\tfile2" | git mktree) &&
541
541
commit=$(git commit-tree -m "hello commit" $tree) &&
542
542
git tag -a -m "tag -> commit" tag-to-commit $commit &&
543
- \
543
+
544
544
blob2=$(echo "hello blob2" | git hash-object -t blob -w --stdin) &&
545
- tag=$(printf "object $blob2\ntype blob\ntag tag-to-blob2\n\
546
- tagger author A U Thor <[email protected] > 0 +0000\n\nhello tag" | git mktag) &&
545
+ tag=$(git mktag <<-EOF
546
+ object $blob2
547
+ type blob
548
+ tag tag-to-blob2
549
+ tagger author A U Thor <[email protected] > 0 +0000
550
+
551
+ hello tag
552
+ EOF
553
+ ) &&
547
554
git tag -a -m "tag -> tag" tag-to-tag $tag &&
548
- \
555
+
549
556
# `fetch-pack --all` should succeed fetching all those objects.
550
557
mkdir fetchall &&
551
558
(
You can’t perform that action at this time.
0 commit comments