mirror of
https://github.com/git/git
synced 2024-10-28 19:25:47 +00:00
t5150: protect backslash with backslash in shell
At least /bin/sh on FreeBSD 8 interprets backslash followed by newline in an unquoted here text as "empty". Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
50ab6558bf
commit
5bab69172f
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ test_expect_success 'setup: two scripts for reading pull requests' '
|
|||
: diffstat
|
||||
n
|
||||
/ [0-9]* files changed/ {
|
||||
a\
|
||||
a\\
|
||||
DIFFSTAT
|
||||
b
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ test_expect_success 'setup: two scripts for reading pull requests' '
|
|||
/^[a-zA-Z]* ([0-9]*):\$/ n
|
||||
/^\$/ N
|
||||
/^\n[a-zA-Z]* ([0-9]*):\$/! {
|
||||
a\
|
||||
a\\
|
||||
SHORTLOG
|
||||
D
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue