]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t3206: disable parameter substitution in heredoc
authorDenton Liu <liu.denton@gmail.com>
Wed, 20 Nov 2019 21:18:36 +0000 (13:18 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Nov 2019 00:29:52 +0000 (09:29 +0900)
In the first heredoc, parameter substitution is not used so prevent it
from happening in the future (perhaps by accident) by escaping the limit
EOF.

The remaining heredocs use parameter substitution so they cannot be
changed.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3206-range-diff.sh

index 87c6c029dba0784a226af7fcb7fc88959dd58c6a..41606775d45046ec3fd05899b8c3fa7ec76d8ad7 100755 (executable)
@@ -9,7 +9,7 @@ test_description='range-diff tests'
 
 test_expect_success 'setup' '
        git fast-import <"$TEST_DIRECTORY"/t3206/history.export &&
-       test_oid_cache <<-EOF
+       test_oid_cache <<-\EOF
        # topic
        t1 sha1:4de457d
        t2 sha1:fccce22