diff options
author | Denton Liu <liu.denton@gmail.com> | 2019-09-05 15:10:05 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-09-06 11:10:36 -0700 |
commit | bd482d6e3348fe369b3b1db2dadbca278a0f0025 (patch) | |
tree | baba73254541c919d66fbedc1481191fcbaffbcf /t/t1506-rev-parse-diagnosis.sh | |
parent | First batch after Git 2.23 (diff) | |
download | tgif-bd482d6e3348fe369b3b1db2dadbca278a0f0025.tar.xz |
t: use common $SQ variable
In many test scripts, there are bespoke definitions of the single quote
that are some variation of this:
SQ="'"
Define a common $SQ variable in test-lib.sh and replace all usages of
these bespoke variables with the common one.
This change was done by running `git grep =\"\'\" t/` and
`git grep =\\\\\'` and manually changing the resulting definitions and
corresponding usages.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1506-rev-parse-diagnosis.sh')
-rwxr-xr-x | t/t1506-rev-parse-diagnosis.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/t/t1506-rev-parse-diagnosis.sh b/t/t1506-rev-parse-diagnosis.sh index 4ee009da66..21a9c8ffb2 100755 --- a/t/t1506-rev-parse-diagnosis.sh +++ b/t/t1506-rev-parse-diagnosis.sh @@ -8,10 +8,9 @@ exec </dev/null test_did_you_mean () { - sq="'" && cat >expected <<-EOF && - fatal: Path '$2$3' $4, but not ${5:-$sq$3$sq}. - Did you mean '$1:$2$3'${2:+ aka $sq$1:./$3$sq}? + fatal: Path '$2$3' $4, but not ${5:-$SQ$3$SQ}. + Did you mean '$1:$2$3'${2:+ aka $SQ$1:./$3$SQ}? EOF test_cmp expected error } |