File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,12 +14,14 @@ export GIT_TEXTDOMAINDIR GIT_PO_PATH
1414if test_have_prereq GETTEXT && ! test_have_prereq GETTEXT_POISON
1515then
1616 # is_IS.UTF-8 on Solaris and FreeBSD, is_IS.utf8 on Debian
17- is_IS_locale=$( locale -a | sed -n ' /^is_IS\.[uU][tT][fF]-*8$/{
17+ is_IS_locale=$( locale -a 2> /dev/null |
18+ sed -n ' /^is_IS\.[uU][tT][fF]-*8$/{
1819 p
1920 q
2021 }' )
2122 # is_IS.ISO8859-1 on Solaris and FreeBSD, is_IS.iso88591 on Debian
22- is_IS_iso_locale=$( locale -a | sed -n ' /^is_IS\.[iI][sS][oO]8859-*1$/{
23+ is_IS_iso_locale=$( locale -a 2> /dev/null |
24+ sed -n ' /^is_IS\.[iI][sS][oO]8859-*1$/{
2325 p
2426 q
2527 }' )
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ test_expect_failure 'additional command line cc (rfc822)' '
155155 git config --replace-all format.headers "Cc: R E Cipient <rcipient@example.com>" &&
156156 git format-patch --cc="S. E. Cipient <scipient@example.com>" --stdout master..side | sed -e "/^\$/q" >patch5 &&
157157 grep "^Cc: R E Cipient <rcipient@example.com>,\$" patch5 &&
158- grep "^ *"S. E. Cipient" <scipient@example.com>\$" patch5
158+ grep "^ *\ "S. E. Cipient\ " <scipient@example.com>\$" patch5
159159'
160160
161161test_expect_success ' command line headers' '
@@ -183,7 +183,7 @@ test_expect_success 'command line To: header (ascii)' '
183183test_expect_failure ' command line To: header (rfc822)' '
184184
185185 git format-patch --to="R. E. Cipient <rcipient@example.com>" --stdout master..side | sed -e "/^\$/q" >patch8 &&
186- grep "^To: "R. E. Cipient" <rcipient@example.com>\$" patch8
186+ grep "^To: \ "R. E. Cipient\ " <rcipient@example.com>\$" patch8
187187'
188188
189189test_expect_failure ' command line To: header (rfc2047)' '
@@ -203,7 +203,7 @@ test_expect_failure 'configuration To: header (rfc822)' '
203203
204204 git config format.to "R. E. Cipient <rcipient@example.com>" &&
205205 git format-patch --stdout master..side | sed -e "/^\$/q" >patch9 &&
206- grep "^To: "R. E. Cipient" <rcipient@example.com>\$" patch9
206+ grep "^To: \ "R. E. Cipient\ " <rcipient@example.com>\$" patch9
207207'
208208
209209test_expect_failure ' configuration To: header (rfc2047)' '
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ check_snapshot () {
4040 echo " basename=$basename "
4141 grep " filename=.*$basename .tar" gitweb.headers > /dev/null 2>&1 &&
4242 " $TAR " tf gitweb.body > file_list &&
43- ! grep -v " ^$prefix / " file_list
43+ ! grep -v -e " ^$prefix $ " -e " ^ $prefix / " -e " ^pax_global_header$ " file_list
4444}
4545
4646test_expect_success setup '
You can’t perform that action at this time.
0 commit comments