Skip to content

Commit 2f3b28f

Browse files
committed
Merge branch 'js/gettext-poison-fixes'
The `maint-2.30` branch accumulated quite a few fixes over the past two years. Most of those fixes were originally based on newer versions, and while the patches cherry-picked cleanly, we weren't diligent enough to pay attention to the CI builds and the GETTEXT_POISON job regressed. This topic branch fixes that. * js/gettext-poison-fixes t0033: GETTEXT_POISON fix t0003: GETTEXT_POISON fix, part 1 t0003: GETTEXT_POISON fix, conclusion t5619: GETTEXT_POISON fix t5604: GETTEXT_POISON fix, part 1 t5604: GETTEXT_POISON fix, conclusion
2 parents 4989c35 + 0c8d22a commit 2f3b28f

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

t/t0003-attributes.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ test_expect_success 'large attributes line ignored in tree' '
344344
printf "path %02043d" 1 >.gitattributes &&
345345
git check-attr --all path >actual 2>err &&
346346
echo "warning: ignoring overly long attributes line 1" >expect &&
347-
test_cmp expect err &&
347+
test_i18ncmp expect err &&
348348
test_must_be_empty actual
349349
'
350350

@@ -357,7 +357,7 @@ test_expect_success 'large attributes line ignores trailing content in tree' '
357357
printf "a %02045dtrailing attribute\n" 1 >.gitattributes &&
358358
git check-attr --all trailing >actual 2>err &&
359359
echo "warning: ignoring overly long attributes line 1" >expect &&
360-
test_cmp expect err &&
360+
test_i18ncmp expect err &&
361361
test_must_be_empty actual
362362
'
363363

@@ -366,7 +366,7 @@ test_expect_success EXPENSIVE 'large attributes file ignored in tree' '
366366
dd if=/dev/zero of=.gitattributes bs=101M count=1 2>/dev/null &&
367367
git check-attr --all path >/dev/null 2>err &&
368368
echo "warning: ignoring overly large gitattributes file ${SQ}.gitattributes${SQ}" >expect &&
369-
test_cmp expect err
369+
test_i18ncmp expect err
370370
'
371371

372372
test_expect_success 'large attributes line ignored in index' '
@@ -375,7 +375,7 @@ test_expect_success 'large attributes line ignored in index' '
375375
git update-index --add --cacheinfo 100644,$blob,.gitattributes &&
376376
git check-attr --cached --all path >actual 2>err &&
377377
echo "warning: ignoring overly long attributes line 1" >expect &&
378-
test_cmp expect err &&
378+
test_i18ncmp expect err &&
379379
test_must_be_empty actual
380380
'
381381

@@ -385,7 +385,7 @@ test_expect_success 'large attributes line ignores trailing content in index' '
385385
git update-index --add --cacheinfo 100644,$blob,.gitattributes &&
386386
git check-attr --cached --all trailing >actual 2>err &&
387387
echo "warning: ignoring overly long attributes line 1" >expect &&
388-
test_cmp expect err &&
388+
test_i18ncmp expect err &&
389389
test_must_be_empty actual
390390
'
391391

t/t0033-safe-directory.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export GIT_TEST_ASSUME_DIFFERENT_OWNER
99

1010
expect_rejected_dir () {
1111
test_must_fail git status 2>err &&
12-
grep "safe.directory" err
12+
test_i18ngrep "safe.directory" err
1313
}
1414

1515
test_expect_success 'safe.directory is not set' '

t/t4115-apply-symlink.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ test_expect_success SYMLINKS 'symlink escape when creating new files' '
7272
cat >expected_stderr <<-EOF &&
7373
error: affected file ${SQ}renamed-symlink/create-me${SQ} is beyond a symbolic link
7474
EOF
75-
test_cmp expected_stderr stderr &&
75+
test_i18ncmp expected_stderr stderr &&
7676
! test_path_exists .git/create-me
7777
'
7878

t/t5604-clone-reference.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ test_expect_success SYMLINKS 'clone repo with symlinked objects directory' '
354354
test_must_fail git clone --local malicious clone 2>err &&
355355
356356
test_path_is_missing clone &&
357-
grep "failed to start iterator over" err
357+
test_i18ngrep "failed to start iterator over" err
358358
'
359359

360360
test_done

t/t5619-clone-local-ambiguous-transport.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ test_expect_success 'ambiguous transport does not lead to arbitrary file-inclusi
6464
#
6565
# This works for now, and if we ever fix the URL detection, it
6666
# is OK to change this to detect the transport error.
67-
grep "protocol .* is not supported" err
67+
test_i18ngrep "protocol .* is not supported" err
6868
'
6969

7070
test_done

0 commit comments

Comments
 (0)