t: use LF variable defined in the test harness
authorJunio C Hamano <gitster@pobox.com>
Tue, 3 Sep 2019 21:11:22 +0000 (14:11 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Sep 2019 18:18:35 +0000 (11:18 -0700)
A few test scripts assign a single LF to $LF, but that is already
given by test-lib.sh to everybody.

Remove the unnecessary reassignment.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3404-rebase-interactive.sh
t/t4013-diff-various.sh
t/t5515-fetch-merge-logic.sh
index 461dd539ffd4803c62d54e22e8921fbefa2c0786..31114d0bbbaebbd1d70ee528830e9ca0472f70f2 100755 (executable)
@@ -155,8 +155,6 @@ test_expect_success 'rebase -x with empty command fails' '
        test_i18ncmp expected actual
 '
 
        test_i18ncmp expected actual
 '
 
-LF='
-'
 test_expect_success 'rebase -x with newline in command fails' '
        test_when_finished "git rebase --abort ||:" &&
        test_must_fail env git rebase -x "a${LF}b" @ 2>actual &&
 test_expect_success 'rebase -x with newline in command fails' '
        test_when_finished "git rebase --abort ||:" &&
        test_must_fail env git rebase -x "a${LF}b" @ 2>actual &&
index a9054d2db11608d7ae2d407e9422a4f61c5e9afd..5ac94b390dfca31bcce585900c2c9b98b795309b 100755 (executable)
@@ -7,9 +7,6 @@ test_description='Various diff formatting options'
 
 . ./test-lib.sh
 
 
 . ./test-lib.sh
 
-LF='
-'
-
 test_expect_success setup '
 
        GIT_AUTHOR_DATE="2006-06-26 00:00:00 +0000" &&
 test_expect_success setup '
 
        GIT_AUTHOR_DATE="2006-06-26 00:00:00 +0000" &&
index e55d8474efb6891d4bea9edf5488f793b26e135a..961eb35c99db6ba4d740f707cd17c7357a3aad0a 100755 (executable)
@@ -12,9 +12,6 @@ GIT_TEST_PROTOCOL_VERSION=
 
 . ./test-lib.sh
 
 
 . ./test-lib.sh
 
-LF='
-'
-
 test_expect_success setup '
        GIT_AUTHOR_DATE="2006-06-26 00:00:00 +0000" &&
        GIT_COMMITTER_DATE="2006-06-26 00:00:00 +0000" &&
 test_expect_success setup '
        GIT_AUTHOR_DATE="2006-06-26 00:00:00 +0000" &&
        GIT_COMMITTER_DATE="2006-06-26 00:00:00 +0000" &&