File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 106106 result=success
107107 fi
108108 test_expect_$result " hunk header: $i " "
109- test_when_finished 'cat actual' && # for debugging only
110109 git diff -U1 $i >actual &&
111110 grep '@@ .* @@.*RIGHT' actual
112111 "
Original file line number Diff line number Diff line change @@ -125,15 +125,14 @@ test_expect_success 'difftool stops on error with --trust-exit-code' '
125125 test_when_finished "rm -f for-diff .git/fail-right-file" &&
126126 test_when_finished "git reset -- for-diff" &&
127127 write_script .git/fail-right-file <<-\EOF &&
128- echo "$2"
128+ echo failed
129129 exit 1
130130 EOF
131131 >for-diff &&
132132 git add for-diff &&
133- echo file >expect &&
134133 test_must_fail git difftool -y --trust-exit-code \
135134 --extcmd .git/fail-right-file branch >actual &&
136- test_cmp expect actual
135+ test_line_count = 1 actual
137136'
138137
139138test_expect_success ' difftool honors exit status if command not found' '
You can’t perform that action at this time.
0 commit comments