tag: fix --sort tests to use cat<<-\EOF format

The --sort tests should use the better format for >expect to maintain
indenting and ensure that no substitution is occurring. This makes
parsing and understanding the tests a bit easier.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jacob Keller 2014-07-11 15:55:46 -07:00 committed by Junio C Hamano
parent ce85604468
commit dc662d449f

View File

@ -1385,7 +1385,7 @@ test_expect_success 'lexical sort' '
git tag foo1.6 &&
git tag foo1.10 &&
git tag -l --sort=refname "foo*" >actual &&
cat >expect <<EOF &&
cat >expect <<-\EOF &&
foo1.10
foo1.3
foo1.6
@ -1395,7 +1395,7 @@ EOF
test_expect_success 'version sort' '
git tag -l --sort=version:refname "foo*" >actual &&
cat >expect <<EOF &&
cat >expect <<-\EOF &&
foo1.3
foo1.6
foo1.10
@ -1405,7 +1405,7 @@ EOF
test_expect_success 'reverse version sort' '
git tag -l --sort=-version:refname "foo*" >actual &&
cat >expect <<EOF &&
cat >expect <<-\EOF &&
foo1.10
foo1.6
foo1.3
@ -1415,7 +1415,7 @@ EOF
test_expect_success 'reverse lexical sort' '
git tag -l --sort=-refname "foo*" >actual &&
cat >expect <<EOF &&
cat >expect <<-\EOF &&
foo1.6
foo1.3
foo1.10