summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-12-19 03:46:14 +0100
committerJunio C Hamano <gitster@pobox.com>2022-12-19 03:46:14 +0100
commitb7bb8828cf202193bf7ac9bf61aa9434c2832e93 (patch)
tree5e62f51bc354f94f515e74c848d8e2961133842a /t
parentMerge branch 'jh/fsmonitor-darwin-modernize' (diff)
parentt3920: don't ignore errors of more than one command with `|| true` (diff)
downloadgit-b7bb8828cf202193bf7ac9bf61aa9434c2832e93.tar.xz
git-b7bb8828cf202193bf7ac9bf61aa9434c2832e93.zip
Merge branch 'js/t3920-shell-and-or-fix'
Test fix. * js/t3920-shell-and-or-fix: t3920: don't ignore errors of more than one command with `|| true`
Diffstat (limited to 't')
-rwxr-xr-xt/t3920-crlf-messages.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t3920-crlf-messages.sh b/t/t3920-crlf-messages.sh
index 4c661d4d54..a58522c163 100755
--- a/t/t3920-crlf-messages.sh
+++ b/t/t3920-crlf-messages.sh
@@ -12,7 +12,7 @@ create_crlf_ref () {
cat >.crlf-orig-$branch.txt &&
cat .crlf-orig-$branch.txt | append_cr >.crlf-message-$branch.txt &&
grep 'Subject' .crlf-orig-$branch.txt | tr '\n' ' ' | sed 's/[ ]*$//' | tr -d '\n' >.crlf-subject-$branch.txt &&
- grep 'Body' .crlf-message-$branch.txt >.crlf-body-$branch.txt || true &&
+ { grep 'Body' .crlf-message-$branch.txt >.crlf-body-$branch.txt || true; } &&
LIB_CRLF_BRANCHES="${LIB_CRLF_BRANCHES} ${branch}" &&
test_tick &&
hash=$(git commit-tree HEAD^{tree} -p HEAD -F .crlf-message-${branch}.txt) &&