Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-02-15 01:15:54 +0300
committerJunio C Hamano <gitster@pobox.com>2023-02-15 01:15:54 +0300
commit8ca2b1f2482652d141236b42bd853c7703e03f4d (patch)
tree7e380f31b3fb9b049b92a913a0112596f47c89f4 /t
parent763ae829a3fa3652d00e614fbf9c17cfb942682d (diff)
parent86325d36e604e872e189e8dba6d914007918311f (diff)
Merge branch 'rs/t3920-crlf-eating-grep-fix' into maint-2.39
Test fix. * rs/t3920-crlf-eating-grep-fix: t3920: support CR-eating grep
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 a58522c163..67fd2345af 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-orig-$branch.txt | append_cr >.crlf-body-$branch.txt &&
LIB_CRLF_BRANCHES="${LIB_CRLF_BRANCHES} ${branch}" &&
test_tick &&
hash=$(git commit-tree HEAD^{tree} -p HEAD -F .crlf-message-${branch}.txt) &&