Skip to content

Commit

Permalink
Merge pull request #2655 from jglathe/jg/t0014_trace_extra_info
Browse files Browse the repository at this point in the history
t/t0014: fix: eliminate additional lines from trace
  • Loading branch information
dscho committed Jan 7, 2025
2 parents 3932ccb + 1066f30 commit bcf2b58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/t0014-alias.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ test_expect_success 'looping aliases - internal execution' '
#'

test_expect_success 'run-command formats empty args properly' '
test_must_fail env GIT_TRACE=1 git frotz a "" b " " c 2>actual.raw &&
sed -ne "/run_command:/s/.*trace: run_command: //p" actual.raw >actual &&
echo "git-frotz a '\'''\'' b '\'' '\'' c" >expect &&
test_cmp expect actual
test_must_fail env GIT_TRACE=1 git frotz a "" b " " c 2>actual.raw &&
sed -ne "/run_command:/s/.*trace: run_command: //p" actual.raw >actual &&
echo "git-frotz a '\'''\'' b '\'' '\'' c" >expect &&
test_cmp expect actual
'

test_expect_success 'tracing a shell alias with arguments shows trace of prepared command' '
Expand Down

0 comments on commit bcf2b58

Please sign in to comment.