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' '
444444test_expect_success ' parse_commit_in_graph works for non-the_repository' '
445445 test-tool repository parse_commit_in_graph \
446446 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 &&
449451 test_cmp expect actual &&
450452
451453 test-tool repository parse_commit_in_graph \
452454 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 &&
454456 test_cmp expect actual
455457'
456458
457459test_expect_success ' get_commit_tree_in_graph works for non-the_repository' '
458460 test-tool repository get_commit_tree_in_graph \
459461 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 &&
461463 test_cmp expect actual &&
462464
463465 test-tool repository get_commit_tree_in_graph \
464466 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 &&
466468 test_cmp expect actual
467469'
468470
You can’t perform that action at this time.
0 commit comments