File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -444,25 +444,27 @@ test_expect_success 'setup non-the_repository tests' '
444
444
test_expect_success ' parse_commit_in_graph works for non-the_repository' '
445
445
test-tool repository parse_commit_in_graph \
446
446
repo/.git repo "$(git -C repo rev-parse two)" >actual &&
447
- echo $(git -C repo log --pretty="%ct" -1) \
448
- $(git -C repo rev-parse one) >expect &&
447
+ {
448
+ git -C repo log --pretty=format:"%ct " -1 &&
449
+ git -C repo rev-parse one
450
+ } >expect &&
449
451
test_cmp expect actual &&
450
452
451
453
test-tool repository parse_commit_in_graph \
452
454
repo/.git repo "$(git -C repo rev-parse one)" >actual &&
453
- echo $( git -C repo log --pretty="%ct" -1 one) >expect &&
455
+ git -C repo log --pretty="%ct" -1 one >expect &&
454
456
test_cmp expect actual
455
457
'
456
458
457
459
test_expect_success ' get_commit_tree_in_graph works for non-the_repository' '
458
460
test-tool repository get_commit_tree_in_graph \
459
461
repo/.git repo "$(git -C repo rev-parse two)" >actual &&
460
- echo $( git -C repo rev-parse two^{tree}) >expect &&
462
+ git -C repo rev-parse two^{tree} >expect &&
461
463
test_cmp expect actual &&
462
464
463
465
test-tool repository get_commit_tree_in_graph \
464
466
repo/.git repo "$(git -C repo rev-parse one)" >actual &&
465
- echo $( git -C repo rev-parse one^{tree}) >expect &&
467
+ git -C repo rev-parse one^{tree} >expect &&
466
468
test_cmp expect actual
467
469
'
468
470
You can’t perform that action at this time.
0 commit comments