]> git.ipfire.org Git - thirdparty/git.git/commitdiff
tests: teach callers of test_i18ngrep to use test_grep
authorJunio C Hamano <gitster@pobox.com>
Tue, 31 Oct 2023 05:23:30 +0000 (14:23 +0900)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Nov 2023 08:13:44 +0000 (17:13 +0900)
They are equivalents and the former still exists, so as long as the
only change this commit makes are to rewrite test_i18ngrep to
test_grep, there won't be any new bug, even if there still are
callers of test_i18ngrep remaining in the tree, or when merged to
other topics that add new uses of test_i18ngrep.

This patch was produced more or less with

    git grep -l -e 'test_i18ngrep ' 't/t[0-9][0-9][0-9][0-9]-*.sh' |
    xargs perl -p -i -e 's/test_i18ngrep /test_grep /'

and a good way to sanity check the result yourself is to run the
above in a checkout of c4603c1c (test framework: further deprecate
test_i18ngrep, 2023-10-31) and compare the resulting working tree
contents with the result of applying this patch to the same commit.
You'll see that test_i18ngrep in a few t/lib-*.sh files corrected,
in addition to the manual reproduction.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
225 files changed:
contrib/mw-to-git/t/t9363-mw-to-git-export-import.sh
t/lib-httpd.sh
t/lib-submodule-update.sh
t/t0001-init.sh
t/t0002-gitfile.sh
t/t0003-attributes.sh
t/t0008-ignores.sh
t/t0012-help.sh
t/t0013-sha1dc.sh
t/t0014-alias.sh
t/t0021-conversion.sh
t/t0028-working-tree-encoding.sh
t/t0040-parse-options.sh
t/t0041-usage.sh
t/t0061-run-command.sh
t/t0070-fundamental.sh
t/t0091-bugreport.sh
t/t0300-credentials.sh
t/t1060-object-corruption.sh
t/t1091-sparse-checkout-builtin.sh
t/t1092-sparse-checkout-compatibility.sh
t/t1300-config.sh
t/t1307-config-blob.sh
t/t1308-config-set.sh
t/t1309-early-config.sh
t/t1310-config-default.sh
t/t1400-update-ref.sh
t/t1404-update-ref-errors.sh
t/t1410-reflog.sh
t/t1416-ref-transaction-hooks.sh
t/t1430-bad-ref-name.sh
t/t1450-fsck.sh
t/t1506-rev-parse-diagnosis.sh
t/t1512-rev-parse-disambiguation.sh
t/t2004-checkout-cache-temp.sh
t/t2006-checkout-index-basic.sh
t/t2010-checkout-ambiguous.sh
t/t2018-checkout-branch.sh
t/t2019-checkout-ambiguous-ref.sh
t/t2020-checkout-detach.sh
t/t2024-checkout-dwim.sh
t/t2025-checkout-no-overlay.sh
t/t2026-checkout-pathspec-file.sh
t/t2027-checkout-track.sh
t/t2030-unresolve-info.sh
t/t2072-restore-pathspec-file.sh
t/t2106-update-index-assume-unchanged.sh
t/t2107-update-index-basic.sh
t/t2203-add-intent.sh
t/t2204-add-ignored.sh
t/t2401-worktree-prune.sh
t/t2402-worktree-list.sh
t/t2403-worktree-move.sh
t/t2406-worktree-repair.sh
t/t3004-ls-files-basic.sh
t/t3007-ls-files-recurse-submodules.sh
t/t3200-branch.sh
t/t3202-show-branch.sh
t/t3206-range-diff.sh
t/t3210-pack-refs.sh
t/t3301-notes.sh
t/t3310-notes-merge-manual-resolve.sh
t/t3320-notes-merge-worktrees.sh
t/t3321-notes-stripspace.sh
t/t3400-rebase.sh
t/t3402-rebase-merge.sh
t/t3403-rebase-skip.sh
t/t3404-rebase-interactive.sh
t/t3406-rebase-message.sh
t/t3418-rebase-continue.sh
t/t3431-rebase-fork-point.sh
t/t3501-revert-cherry-pick.sh
t/t3507-cherry-pick-conflict.sh
t/t3510-cherry-pick-sequence.sh
t/t3600-rm.sh
t/t3601-rm-pathspec-file.sh
t/t3700-add.sh
t/t3701-add-interactive.sh
t/t3704-add-pathspec-file.sh
t/t3900-i18n-commit.sh
t/t3901-i18n-patch.sh
t/t3903-stash.sh
t/t3905-stash-include-untracked.sh
t/t3909-stash-pathspec-file.sh
t/t4001-diff-rename.sh
t/t4013-diff-various.sh
t/t4014-format-patch.sh
t/t4015-diff-whitespace.sh
t/t4018-diff-funcname.sh
t/t4031-diff-rewrite-binary.sh
t/t4047-diff-dirstat.sh
t/t4053-diff-no-index.sh
t/t4055-diff-context.sh
t/t4068-diff-symmetric-merge-base.sh
t/t4115-apply-symlink.sh
t/t4120-apply-popt.sh
t/t4122-apply-symlink-inside.sh
t/t4129-apply-samemode.sh
t/t4133-apply-filenames.sh
t/t4150-am.sh
t/t4151-am-abort.sh
t/t4153-am-resume-override-opts.sh
t/t4200-rerere.sh
t/t4201-shortlog.sh
t/t4202-log.sh
t/t4203-mailmap.sh
t/t4208-log-magic-pathspec.sh
t/t4209-log-pickaxe.sh
t/t4211-line-log.sh
t/t4212-log-corrupt.sh
t/t4256-am-format-flowed.sh
t/t5300-pack-object.sh
t/t5302-pack-index.sh
t/t5304-prune.sh
t/t5310-pack-bitmaps.sh
t/t5318-commit-graph.sh
t/t5319-multi-pack-index.sh
t/t5324-split-commit-graph.sh
t/t5331-pack-objects-stdin.sh
t/t5411/test-0026-push-options.sh
t/t5411/test-0027-push-options--porcelain.sh
t/t5500-fetch-pack.sh
t/t5504-fetch-receive-strict.sh
t/t5505-remote.sh
t/t5510-fetch.sh
t/t5512-ls-remote.sh
t/t5514-fetch-multiple.sh
t/t5516-fetch-push.sh
t/t5520-pull.sh
t/t5521-pull-options.sh
t/t5523-push-upstream.sh
t/t5528-push-default.sh
t/t5530-upload-pack-error.sh
t/t5531-deep-submodule-push.sh
t/t5534-push-signed.sh
t/t5536-fetch-conflicts.sh
t/t5541-http-push-smart.sh
t/t5545-push-options.sh
t/t5550-http-fetch-dumb.sh
t/t5551-http-fetch-smart.sh
t/t5570-git-daemon.sh
t/t5572-pull-submodule.sh
t/t5573-pull-verify-signatures.sh
t/t5574-fetch-output.sh
t/t5580-unc-paths.sh
t/t5601-clone.sh
t/t5604-clone-reference.sh
t/t5606-clone-options.sh
t/t5607-clone-bundle.sh
t/t5611-clone-config.sh
t/t5616-partial-clone.sh
t/t5701-git-serve.sh
t/t5702-protocol-v2.sh
t/t5703-upload-pack-ref-in-want.sh
t/t5704-protocol-violations.sh
t/t5801-remote-helpers.sh
t/t5812-proto-disable-http.sh
t/t6001-rev-list-graft.sh
t/t6021-rev-list-exclude-hidden.sh
t/t6030-bisect-porcelain.sh
t/t6040-tracking-info.sh
t/t6050-replace.sh
t/t6102-rev-list-unexpected-objects.sh
t/t6112-rev-list-filters-objects.sh
t/t6120-describe.sh
t/t6134-pathspec-in-submodule.sh
t/t6135-pathspec-with-attrs.sh
t/t6136-pathspec-in-bare.sh
t/t6402-merge-rename.sh
t/t6422-merge-rename-corner-cases.sh
t/t6423-merge-rename-directories.sh
t/t6424-merge-unrelated-index-changes.sh
t/t6425-merge-rename-delete.sh
t/t6426-merge-skip-unneeded-updates.sh
t/t6430-merge-recursive.sh
t/t6433-merge-toplevel.sh
t/t6436-merge-overwrite.sh
t/t6437-submodule-merge.sh
t/t6500-gc.sh
t/t7001-mv.sh
t/t7105-reset-patch.sh
t/t7106-reset-unborn-branch.sh
t/t7107-reset-pathspec-file.sh
t/t7110-reset-merge.sh
t/t7201-co.sh
t/t7300-clean.sh
t/t7400-submodule-basic.sh
t/t7403-submodule-sync.sh
t/t7406-submodule-update.sh
t/t7411-submodule-config.sh
t/t7414-submodule-mistakes.sh
t/t7416-submodule-dash-url.sh
t/t7417-submodule-path-url.sh
t/t7450-bad-git-dotfiles.sh
t/t7500-commit-template-squash-signoff.sh
t/t7501-commit-basic-functionality.sh
t/t7502-commit-porcelain.sh
t/t7506-status-submodule.sh
t/t7507-commit-verbose.sh
t/t7508-status.sh
t/t7509-commit-authorship.sh
t/t7518-ident-corner-cases.sh
t/t7519-status-fsmonitor.sh
t/t7520-ignored-hook-warning.sh
t/t7525-status-rename.sh
t/t7526-commit-pathspec-file.sh
t/t7600-merge.sh
t/t7601-merge-pull-config.sh
t/t7611-merge-abort.sh
t/t7612-merge-verify-signatures.sh
t/t7703-repack-geometric.sh
t/t7800-difftool.sh
t/t7810-grep.sh
t/t7811-grep-open.sh
t/t7814-grep-recurse-submodules.sh
t/t7816-grep-binary-pattern.sh
t/t7900-maintenance.sh
t/t8003-blame-corner-cases.sh
t/t8013-blame-ignore-revs.sh
t/t9001-send-email.sh
t/t9300-fast-import.sh
t/t9800-git-p4-basic.sh
t/t9801-git-p4-branch.sh
t/t9807-git-p4-submit.sh
t/t9815-git-p4-submit-fail.sh

index 6187ec67faaa23c59d358bc3150b72fc82bd7087..7139995a405cee9881f690ff892464c875984e27 100755 (executable)
@@ -161,7 +161,7 @@ test_expect_success 'git push properly warns about insufficient permissions' '
                git add foo.forbidden &&
                git commit -m "add a file" &&
                git push 2>actual &&
-               test_i18ngrep "foo.forbidden is not a permitted file" actual
+               test_grep "foo.forbidden is not a permitted file" actual
        )
 '
 
index 2fb1b2ae5613a5384dea41df405658cdb787117b..5fe3c8ab69d166b79f6c3ebcfe6e1d497ba17d15 100644 (file)
@@ -255,7 +255,7 @@ test_http_push_nonff () {
        '
 
        test_expect_success 'non-fast-forward push shows help message' '
-               test_i18ngrep "Updates were rejected because" output
+               test_grep "Updates were rejected because" output
        '
 
        test_expect_${EXPECT_CAS_RESULT} 'force with lease aka cas' '
index 9acb0d5d19d2ec44827856a7496a2f785c537e02..36f767cb7488bff81696f985e3614a5fffcda495 100644 (file)
@@ -830,7 +830,7 @@ test_submodule_recursing_with_args_common () {
                        cd submodule_update &&
                        git branch -t invalid_sub1 origin/invalid_sub1 &&
                        test_must_fail $command invalid_sub1 2>err &&
-                       test_i18ngrep sub1 err &&
+                       test_grep sub1 err &&
                        test_superproject_content origin/add_sub1 &&
                        test_submodule_content sub1 origin/add_sub1
                )
index 30a6edca1d29fcef63cfc155685600c63553f636..2b78e3be4795096aa3d9eeb5f7b5c3dc3a24f717 100755 (executable)
@@ -168,8 +168,8 @@ test_expect_success 'reinit' '
                git -c init.defaultBranch=initial init >out1 2>err1 &&
                git init >out2 2>err2
        ) &&
-       test_i18ngrep "Initialized empty" again/out1 &&
-       test_i18ngrep "Reinitialized existing" again/out2 &&
+       test_grep "Initialized empty" again/out1 &&
+       test_grep "Reinitialized existing" again/out2 &&
        test_must_be_empty again/err1 &&
        test_must_be_empty again/err2
 '
@@ -332,7 +332,7 @@ test_expect_success 'init with separate gitdir' '
 
 test_expect_success 'explicit bare & --separate-git-dir incompatible' '
        test_must_fail git init --bare --separate-git-dir goop.git bare.git 2>err &&
-       test_i18ngrep "cannot be used together" err
+       test_grep "cannot be used together" err
 '
 
 test_expect_success 'implicit bare & --separate-git-dir incompatible' '
@@ -340,7 +340,7 @@ test_expect_success 'implicit bare & --separate-git-dir incompatible' '
        mkdir -p bare.git &&
        test_must_fail env GIT_DIR=. \
                git -C bare.git init --separate-git-dir goop.git 2>err &&
-       test_i18ngrep "incompatible" err
+       test_grep "incompatible" err
 '
 
 test_expect_success 'bare & --separate-git-dir incompatible within worktree' '
@@ -349,7 +349,7 @@ test_expect_success 'bare & --separate-git-dir incompatible within worktree' '
        git clone --bare . bare.git &&
        git -C bare.git worktree add --detach ../linkwt &&
        test_must_fail git -C linkwt init --separate-git-dir seprepo 2>err &&
-       test_i18ngrep "incompatible" err
+       test_grep "incompatible" err
 '
 
 test_lazy_prereq GETCWD_IGNORES_PERMS '
@@ -563,7 +563,7 @@ test_expect_success '--initial-branch' '
 
        : re-initializing should not change the branch name &&
        git init --initial-branch=ignore initial-branch-option 2>err &&
-       test_i18ngrep "ignored --initial-branch" err &&
+       test_grep "ignored --initial-branch" err &&
        git -C initial-branch-option symbolic-ref HEAD >actual &&
        grep hello actual
 '
@@ -579,7 +579,7 @@ test_expect_success 'advice on unconfigured init.defaultBranch' '
        GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME= git -c color.advice=always \
                init unconfigured-default-branch-name 2>err &&
        test_decode_color <err >decoded &&
-       test_i18ngrep "<YELLOW>hint: " decoded
+       test_grep "<YELLOW>hint: " decoded
 '
 
 test_expect_success 'overridden default main branch name (env)' '
@@ -592,7 +592,7 @@ test_expect_success 'overridden default main branch name (env)' '
 test_expect_success 'invalid default branch name' '
        test_must_fail env GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME="with space" \
                git init initial-branch-invalid 2>err &&
-       test_i18ngrep "invalid branch name" err
+       test_grep "invalid branch name" err
 '
 
 test_expect_success 'branch -m with the initial branch' '
index e013d38f485cc8b06c1afb51579ed6a4d322dfaa..736516cc6a478ee548b79f7d9a0f2cae0b51430e 100755 (executable)
@@ -22,13 +22,13 @@ test_expect_success 'initial setup' '
 test_expect_success 'bad setup: invalid .git file format' '
        echo "gitdir $REAL" >.git &&
        test_must_fail git rev-parse 2>.err &&
-       test_i18ngrep "invalid gitfile format" .err
+       test_grep "invalid gitfile format" .err
 '
 
 test_expect_success 'bad setup: invalid .git file path' '
        echo "gitdir: $REAL.not" >.git &&
        test_must_fail git rev-parse 2>.err &&
-       test_i18ngrep "not a git repository" .err
+       test_grep "not a git repository" .err
 '
 
 test_expect_success 'final setup + check rev-parse --git-dir' '
index 26e082f05b4473a553b4de9b7747b928179439cd..42695e143d99636e1bc3e00d5eb0d951f2dfc681 100755 (executable)
@@ -259,7 +259,7 @@ test_expect_success 'root subdir attribute test' '
 test_expect_success 'negative patterns' '
        echo "!f test=bar" >.gitattributes &&
        git check-attr test -- '"'"'!f'"'"' 2>errors &&
-       test_i18ngrep "Negative patterns are ignored" errors
+       test_grep "Negative patterns are ignored" errors
 '
 
 test_expect_success 'patterns starting with exclamation' '
@@ -424,7 +424,7 @@ test_expect_success SYMLINKS 'symlinks not respected in-tree' '
        mkdir subdir &&
        ln -s ../attr subdir/.gitattributes &&
        attr_check_basic subdir/file unspecified &&
-       test_i18ngrep "unable to access.*gitattributes" err
+       test_grep "unable to access.*gitattributes" err
 '
 
 test_expect_success 'large attributes line ignored in tree' '
index c70d11bc914d09df5baa8cf74e9a2c292fc861b8..361446b2f4c9ed39cc5d1b9c301751420c0a670d 100755 (executable)
@@ -49,7 +49,7 @@ broken_c_unquote_verbose () {
 
 stderr_contains () {
        regexp="$1"
-       if test_i18ngrep "$regexp" "$HOME/stderr"
+       if test_grep "$regexp" "$HOME/stderr"
        then
                return 0
        else
@@ -942,7 +942,7 @@ test_expect_success SYMLINKS 'symlinks not respected in-tree' '
        ln -s ignore subdir/.gitignore &&
        test_must_fail git check-ignore subdir/file >actual 2>err &&
        test_must_be_empty actual &&
-       test_i18ngrep "unable to access.*gitignore" err
+       test_grep "unable to access.*gitignore" err
 '
 
 test_done
index dbfc5c826764bca4ec5561b603d8016f7d50f20d..1d273d91c2125ae2c16ae1a14c628cf23fcecc06 100755 (executable)
@@ -100,17 +100,17 @@ test_expect_success "--help does not work for guides" "
 
 test_expect_success 'git help' '
        git help >help.output &&
-       test_i18ngrep "^   clone  " help.output &&
-       test_i18ngrep "^   add    " help.output &&
-       test_i18ngrep "^   log    " help.output &&
-       test_i18ngrep "^   commit " help.output &&
-       test_i18ngrep "^   fetch  " help.output
+       test_grep "^   clone  " help.output &&
+       test_grep "^   add    " help.output &&
+       test_grep "^   log    " help.output &&
+       test_grep "^   commit " help.output &&
+       test_grep "^   fetch  " help.output
 '
 
 test_expect_success 'git help -g' '
        git help -g >help.output &&
-       test_i18ngrep "^   everyday   " help.output &&
-       test_i18ngrep "^   tutorial   " help.output
+       test_grep "^   everyday   " help.output &&
+       test_grep "^   tutorial   " help.output
 '
 
 test_expect_success 'git help fails for non-existing html pages' '
@@ -257,7 +257,7 @@ do
                        export GIT_CEILING_DIRECTORIES &&
                        test_expect_code 129 git -C sub $builtin -h >output 2>&1
                ) &&
-               test_i18ngrep usage output
+               test_grep usage output
        '
 done <builtins
 
index 53240476896d8e80a969f1b9b448fd01b45fa711..08814173cb111c941c59e2fa764ac271fcbe9dab 100755 (executable)
@@ -16,7 +16,7 @@ fi
 
 test_expect_success 'test-sha1 detects shattered pdf' '
        test_must_fail test-tool sha1 <"$TEST_DATA/shattered-1.pdf" 2>err &&
-       test_i18ngrep collision err &&
+       test_grep collision err &&
        grep 38762cf7f55934b34d179ae6a4c80cadccbb7f0a err
 '
 
index 8d3d9144c06d6129b91d3513c1ec605a3fb4da73..95568342be35f3208d16706ed674d8db5e0932ed 100755 (executable)
@@ -8,7 +8,7 @@ test_expect_success 'nested aliases - internal execution' '
        git config alias.nested-internal-1 nested-internal-2 &&
        git config alias.nested-internal-2 status &&
        git nested-internal-1 >output &&
-       test_i18ngrep "^On branch " output
+       test_grep "^On branch " output
 '
 
 test_expect_success 'nested aliases - mixed execution' '
@@ -16,7 +16,7 @@ test_expect_success 'nested aliases - mixed execution' '
        git config alias.nested-external-2 "!git nested-external-3" &&
        git config alias.nested-external-3 status &&
        git nested-external-1 >output &&
-       test_i18ngrep "^On branch " output
+       test_grep "^On branch " output
 '
 
 test_expect_success 'looping aliases - internal execution' '
@@ -24,7 +24,7 @@ test_expect_success 'looping aliases - internal execution' '
        git config alias.loop-internal-2 loop-internal-3 &&
        git config alias.loop-internal-3 loop-internal-2 &&
        test_must_fail git loop-internal-1 2>output &&
-       test_i18ngrep "^fatal: alias loop detected: expansion of" output
+       test_grep "^fatal: alias loop detected: expansion of" output
 '
 
 # This test is disabled until external loops are fixed, because would block
@@ -34,7 +34,7 @@ test_expect_success 'looping aliases - internal execution' '
 #      git config alias.loop-mixed-1 loop-mixed-2 &&
 #      git config alias.loop-mixed-2 "!git loop-mixed-1" &&
 #      test_must_fail git loop-mixed-1 2>output &&
-#      test_i18ngrep "^fatal: alias loop detected: expansion of" output
+#      test_grep "^fatal: alias loop detected: expansion of" output
 #'
 
 test_expect_success 'run-command formats empty args properly' '
index 46abbeed683992672f9dcaa6f9e2b256f1ea02eb..0b4997022bf88a713845f45f67ab55b03992a659 100755 (executable)
@@ -263,7 +263,7 @@ test_expect_success 'required filter with absent clean field' '
 
        echo test >test.ac &&
        test_must_fail git add test.ac 2>stderr &&
-       test_i18ngrep "fatal: test.ac: clean filter .absentclean. failed" stderr
+       test_grep "fatal: test.ac: clean filter .absentclean. failed" stderr
 '
 
 test_expect_success 'required filter with absent smudge field' '
@@ -276,7 +276,7 @@ test_expect_success 'required filter with absent smudge field' '
        git add test.as &&
        rm -f test.as &&
        test_must_fail git checkout -- test.as 2>stderr &&
-       test_i18ngrep "fatal: test.as: smudge filter absentsmudge failed" stderr
+       test_grep "fatal: test.as: smudge filter absentsmudge failed" stderr
 '
 
 test_expect_success 'filtering large input to small output should use little memory' '
@@ -733,7 +733,7 @@ test_expect_success 'process filter should restart after unexpected write failur
                git checkout --quiet --no-progress . 2>git-stderr.log &&
 
                grep "smudge write error" git-stderr.log &&
-               test_i18ngrep "error: external filter" git-stderr.log &&
+               test_grep "error: external filter" git-stderr.log &&
 
                cat >expected.log <<-EOF &&
                        START
index c196fdb0ee21a27b6093902dcafe133abfc98ce0..1b55f59c237c59d625241aea56679fbf9bb3bb25 100755 (executable)
@@ -92,23 +92,23 @@ do
                # In these cases the BOM is prohibited.
                cp bebom.utf${i}be.raw bebom.utf${i}be &&
                test_must_fail git add bebom.utf${i}be 2>err.out &&
-               test_i18ngrep "fatal: BOM is prohibited .* utf-${i}be" err.out &&
-               test_i18ngrep "use UTF-${i} as working-tree-encoding" err.out &&
+               test_grep "fatal: BOM is prohibited .* utf-${i}be" err.out &&
+               test_grep "use UTF-${i} as working-tree-encoding" err.out &&
 
                cp lebom.utf${i}le.raw lebom.utf${i}be &&
                test_must_fail git add lebom.utf${i}be 2>err.out &&
-               test_i18ngrep "fatal: BOM is prohibited .* utf-${i}be" err.out &&
-               test_i18ngrep "use UTF-${i} as working-tree-encoding" err.out &&
+               test_grep "fatal: BOM is prohibited .* utf-${i}be" err.out &&
+               test_grep "use UTF-${i} as working-tree-encoding" err.out &&
 
                cp bebom.utf${i}be.raw bebom.utf${i}le &&
                test_must_fail git add bebom.utf${i}le 2>err.out &&
-               test_i18ngrep "fatal: BOM is prohibited .* utf-${i}LE" err.out &&
-               test_i18ngrep "use UTF-${i} as working-tree-encoding" err.out &&
+               test_grep "fatal: BOM is prohibited .* utf-${i}LE" err.out &&
+               test_grep "use UTF-${i} as working-tree-encoding" err.out &&
 
                cp lebom.utf${i}le.raw lebom.utf${i}le &&
                test_must_fail git add lebom.utf${i}le 2>err.out &&
-               test_i18ngrep "fatal: BOM is prohibited .* utf-${i}LE" err.out &&
-               test_i18ngrep "use UTF-${i} as working-tree-encoding" err.out
+               test_grep "fatal: BOM is prohibited .* utf-${i}LE" err.out &&
+               test_grep "use UTF-${i} as working-tree-encoding" err.out
        '
 
        test_expect_success "check required UTF-${i} BOM" '
@@ -118,13 +118,13 @@ do
 
                cp nobom.utf${i}be.raw nobom.utf${i} &&
                test_must_fail git add nobom.utf${i} 2>err.out &&
-               test_i18ngrep "fatal: BOM is required .* utf-${i}" err.out &&
-               test_i18ngrep "use UTF-${i}BE or UTF-${i}LE" err.out &&
+               test_grep "fatal: BOM is required .* utf-${i}" err.out &&
+               test_grep "use UTF-${i}BE or UTF-${i}LE" err.out &&
 
                cp nobom.utf${i}le.raw nobom.utf${i} &&
                test_must_fail git add nobom.utf${i} 2>err.out &&
-               test_i18ngrep "fatal: BOM is required .* utf-${i}" err.out &&
-               test_i18ngrep "use UTF-${i}BE or UTF-${i}LE" err.out
+               test_grep "fatal: BOM is required .* utf-${i}" err.out &&
+               test_grep "use UTF-${i}BE or UTF-${i}LE" err.out
        '
 
        test_expect_success "eol conversion for UTF-${i} encoded files on checkout" '
@@ -169,7 +169,7 @@ test_expect_success 'check unsupported encodings' '
        echo "*.set text working-tree-encoding" >.gitattributes &&
        printf "set" >t.set &&
        test_must_fail git add t.set 2>err.out &&
-       test_i18ngrep "true/false are no valid working-tree-encodings" err.out &&
+       test_grep "true/false are no valid working-tree-encodings" err.out &&
 
        echo "*.unset text -working-tree-encoding" >.gitattributes &&
        printf "unset" >t.unset &&
@@ -182,7 +182,7 @@ test_expect_success 'check unsupported encodings' '
        echo "*.garbage text working-tree-encoding=garbage" >.gitattributes &&
        printf "garbage" >t.garbage &&
        test_must_fail git add t.garbage 2>err.out &&
-       test_i18ngrep "failed to encode" err.out
+       test_grep "failed to encode" err.out
 '
 
 test_expect_success 'error if encoding round trip is not the same during refresh' '
@@ -201,7 +201,7 @@ test_expect_success 'error if encoding round trip is not the same during refresh
        git update-ref refs/heads/main $COMMIT &&
 
        test_must_fail git checkout HEAD^ 2>err.out &&
-       test_i18ngrep "error: .* overwritten by checkout:" err.out
+       test_grep "error: .* overwritten by checkout:" err.out
 '
 
 test_expect_success 'error if encoding garbage is already in Git' '
@@ -217,7 +217,7 @@ test_expect_success 'error if encoding garbage is already in Git' '
        git update-ref refs/heads/main $COMMIT &&
 
        git diff 2>err.out &&
-       test_i18ngrep "error: BOM is required" err.out
+       test_grep "error: BOM is required" err.out
 '
 
 test_lazy_prereq ICONV_SHIFT_JIS '
index e19a19963697a08255bb1b933631cdc90d57340d..c8cc0fd8d065f766106bc48c5e7297d991208f72 100755 (executable)
@@ -366,13 +366,13 @@ test_expect_success 'OPT_CMDMODE() works' '
 test_expect_success 'OPT_CMDMODE() detects incompatibility' '
        test_must_fail test-tool parse-options --mode1 --mode2 >output 2>output.err &&
        test_must_be_empty output &&
-       test_i18ngrep "incompatible with --mode" output.err
+       test_grep "incompatible with --mode" output.err
 '
 
 test_expect_success 'OPT_CMDMODE() detects incompatibility with something else' '
        test_must_fail test-tool parse-options --set23 --mode2 >output 2>output.err &&
        test_must_be_empty output &&
-       test_i18ngrep "incompatible with something else" output.err
+       test_grep "incompatible with something else" output.err
 '
 
 test_expect_success 'OPT_COUNTUP() with PARSE_OPT_NODASH works' '
index 9ea974b0c6c68a247ddd3f1b7cae806a4c79fbc4..1464294bd1bfc36d48f06a3ead7826daeb9a745c 100755 (executable)
@@ -21,8 +21,8 @@ test_expect_success 'tag --contains <existent_tag>' '
 test_expect_success 'tag --contains <inexistent_tag>' '
        test_must_fail git tag --contains "notag" >actual 2>actual.err &&
        test_line_count = 0 actual &&
-       test_i18ngrep "error" actual.err &&
-       test_i18ngrep ! "usage" actual.err
+       test_grep "error" actual.err &&
+       test_grep ! "usage" actual.err
 '
 
 test_expect_success 'tag --no-contains <existent_tag>' '
@@ -34,27 +34,27 @@ test_expect_success 'tag --no-contains <existent_tag>' '
 test_expect_success 'tag --no-contains <inexistent_tag>' '
        test_must_fail git tag --no-contains "notag" >actual 2>actual.err &&
        test_line_count = 0 actual &&
-       test_i18ngrep "error" actual.err &&
-       test_i18ngrep ! "usage" actual.err
+       test_grep "error" actual.err &&
+       test_grep ! "usage" actual.err
 '
 
 test_expect_success 'tag usage error' '
        test_must_fail git tag --noopt >actual 2>actual.err &&
        test_line_count = 0 actual &&
-       test_i18ngrep "usage" actual.err
+       test_grep "usage" actual.err
 '
 
 test_expect_success 'branch --contains <existent_commit>' '
        git branch --contains "main" >actual 2>actual.err &&
-       test_i18ngrep "main" actual &&
+       test_grep "main" actual &&
        test_line_count = 0 actual.err
 '
 
 test_expect_success 'branch --contains <inexistent_commit>' '
        test_must_fail git branch --no-contains "nocommit" >actual 2>actual.err &&
        test_line_count = 0 actual &&
-       test_i18ngrep "error" actual.err &&
-       test_i18ngrep ! "usage" actual.err
+       test_grep "error" actual.err &&
+       test_grep ! "usage" actual.err
 '
 
 test_expect_success 'branch --no-contains <existent_commit>' '
@@ -66,14 +66,14 @@ test_expect_success 'branch --no-contains <existent_commit>' '
 test_expect_success 'branch --no-contains <inexistent_commit>' '
        test_must_fail git branch --no-contains "nocommit" >actual 2>actual.err &&
        test_line_count = 0 actual &&
-       test_i18ngrep "error" actual.err &&
-       test_i18ngrep ! "usage" actual.err
+       test_grep "error" actual.err &&
+       test_grep ! "usage" actual.err
 '
 
 test_expect_success 'branch usage error' '
        test_must_fail git branch --noopt >actual 2>actual.err &&
        test_line_count = 0 actual &&
-       test_i18ngrep "usage" actual.err
+       test_grep "usage" actual.err
 '
 
 test_expect_success 'for-each-ref --contains <existent_object>' '
@@ -85,8 +85,8 @@ test_expect_success 'for-each-ref --contains <existent_object>' '
 test_expect_success 'for-each-ref --contains <inexistent_object>' '
        test_must_fail git for-each-ref --no-contains "noobject" >actual 2>actual.err &&
        test_line_count = 0 actual &&
-       test_i18ngrep "error" actual.err &&
-       test_i18ngrep ! "usage" actual.err
+       test_grep "error" actual.err &&
+       test_grep ! "usage" actual.err
 '
 
 test_expect_success 'for-each-ref --no-contains <existent_object>' '
@@ -98,14 +98,14 @@ test_expect_success 'for-each-ref --no-contains <existent_object>' '
 test_expect_success 'for-each-ref --no-contains <inexistent_object>' '
        test_must_fail git for-each-ref --no-contains "noobject" >actual 2>actual.err &&
        test_line_count = 0 actual &&
-       test_i18ngrep "error" actual.err &&
-       test_i18ngrep ! "usage" actual.err
+       test_grep "error" actual.err &&
+       test_grep ! "usage" actual.err
 '
 
 test_expect_success 'for-each-ref usage error' '
        test_must_fail git for-each-ref --noopt >actual 2>actual.err &&
        test_line_count = 0 actual &&
-       test_i18ngrep "usage" actual.err
+       test_grep "usage" actual.err
 '
 
 test_done
index e2411f6a9bd93bad152360b6997bb9785d55ef18..20986b693cfbe8de91552f43daa11be630842f34 100755 (executable)
@@ -19,12 +19,12 @@ test_expect_success MINGW 'subprocess inherits only std handles' '
 
 test_expect_success 'start_command reports ENOENT (slash)' '
        test-tool run-command start-command-ENOENT ./does-not-exist 2>err &&
-       test_i18ngrep "\./does-not-exist" err
+       test_grep "\./does-not-exist" err
 '
 
 test_expect_success 'start_command reports ENOENT (no slash)' '
        test-tool run-command start-command-ENOENT does-not-exist 2>err &&
-       test_i18ngrep "does-not-exist" err
+       test_grep "does-not-exist" err
 '
 
 test_expect_success 'run_command can run a command' '
@@ -49,7 +49,7 @@ test_expect_success !RUNS_COMMANDS_FROM_PWD 'run_command is restricted to PATH'
        echo yikes
        EOF
        test_must_fail test-tool run-command run-command should-not-run 2>err &&
-       test_i18ngrep "should-not-run" err
+       test_grep "should-not-run" err
 '
 
 test_expect_success !MINGW 'run_command can run a script without a #! line' '
index 574de3419800e5f392038de8f35374d355fc9bcf..487bc8d9054c908f97bc376005c3fd1eedd107b9 100755 (executable)
@@ -44,13 +44,13 @@ test_expect_success 'incomplete sideband messages are reassembled' '
 test_expect_success 'eof on sideband message is reported' '
        printf 1234 >input &&
        test-tool pkt-line receive-sideband <input 2>err &&
-       test_i18ngrep "unexpected disconnect" err
+       test_grep "unexpected disconnect" err
 '
 
 test_expect_success 'missing sideband designator is reported' '
        printf 0004 >input &&
        test-tool pkt-line receive-sideband <input 2>err &&
-       test_i18ngrep "missing sideband" err
+       test_grep "missing sideband" err
 '
 
 test_done
index f6998269beb4fea3f68f14ffae22b541a066e6b3..150cc1dea24560eaa88e12abd807e947460baea6 100755 (executable)
@@ -65,7 +65,7 @@ test_expect_success '--output-directory puts the report in the provided dir' '
 
 test_expect_success 'incorrect arguments abort with usage' '
        test_must_fail git bugreport --false 2>output &&
-       test_i18ngrep usage output &&
+       test_grep usage output &&
        test_path_is_missing git-bugreport-*
 '
 
index a4f5bba5075c3d61a86b2fad1cb95ba73058bc8e..400f6bdbca13c2a93cb8521e21e08fbd4e1eb3bd 100755 (executable)
@@ -827,7 +827,7 @@ test_expect_success 'credential config with partial URLs' '
        git -c credential.$partial.helper=yep \
                -c credential.with%0anewline.username=uh-oh \
                credential fill <stdin 2>stderr &&
-       test_i18ngrep "skipping credential lookup for key" stderr
+       test_grep "skipping credential lookup for key" stderr
 '
 
 test_done
index 35261afc9d6d02fe1d9d1572591406b293522fa8..5e0f0a334f4d43dd76199a50037c5900da2cb63b 100755 (executable)
@@ -125,7 +125,7 @@ test_expect_success 'fetch into corrupted repo with index-pack' '
                cd bit-error-cp &&
                test_must_fail git -c transfer.unpackLimit=1 \
                        fetch ../no-bit-error 2>stderr &&
-               test_i18ngrep ! -i collision stderr
+               test_grep ! -i collision stderr
        )
 '
 
index 9ceb17f911891964aa5e3a2837a2739bead2bc3c..f67611da28e6e27125008e5e7073cec8a2fd8752 100755 (executable)
@@ -47,7 +47,7 @@ test_expect_success 'setup' '
 test_expect_success 'git sparse-checkout list (not sparse)' '
        test_must_fail git -C repo sparse-checkout list >list 2>err &&
        test_must_be_empty list &&
-       test_i18ngrep "this worktree is not sparse" err
+       test_grep "this worktree is not sparse" err
 '
 
 test_expect_success 'git sparse-checkout list (not sparse)' '
@@ -55,7 +55,7 @@ test_expect_success 'git sparse-checkout list (not sparse)' '
        rm repo/.git/info/sparse-checkout &&
        git -C repo sparse-checkout list >list 2>err &&
        test_must_be_empty list &&
-       test_i18ngrep "this worktree is not sparse (sparse-checkout file may not exist)" err
+       test_grep "this worktree is not sparse (sparse-checkout file may not exist)" err
 '
 
 test_expect_success 'git sparse-checkout list (populated)' '
@@ -230,7 +230,7 @@ test_expect_success 'cone mode: match patterns' '
        git -C repo config --worktree core.sparseCheckoutCone true &&
        rm -rf repo/a repo/folder1 repo/folder2 &&
        git -C repo read-tree -mu HEAD 2>err &&
-       test_i18ngrep ! "disabling cone patterns" err &&
+       test_grep ! "disabling cone patterns" err &&
        git -C repo reset --hard &&
        check_files repo a folder1 folder2
 '
@@ -240,7 +240,7 @@ test_expect_success 'cone mode: warn on bad pattern' '
        cp repo/.git/info/sparse-checkout . &&
        echo "!/deep/deeper/*/" >>repo/.git/info/sparse-checkout &&
        git -C repo read-tree -mu HEAD 2>err &&
-       test_i18ngrep "unrecognized negative pattern" err
+       test_grep "unrecognized negative pattern" err
 '
 
 test_expect_success 'sparse-checkout disable' '
@@ -283,7 +283,7 @@ test_expect_success 'sparse-index enabled and disabled' '
 test_expect_success 'cone mode: init and set' '
        git -C repo sparse-checkout init --cone &&
        git -C repo config --list >config &&
-       test_i18ngrep "core.sparsecheckoutcone=true" config &&
+       test_grep "core.sparsecheckoutcone=true" config &&
        list_files repo >dir  &&
        echo a >expect &&
        test_cmp expect dir &&
@@ -386,7 +386,7 @@ test_expect_success 'not-up-to-date does not block rest of sparsification' '
 
        git -C repo sparse-checkout set deep/deeper1 2>err &&
 
-       test_i18ngrep "The following paths are not up to date" err &&
+       test_grep "The following paths are not up to date" err &&
        test_cmp expect repo/.git/info/sparse-checkout &&
        check_files repo/deep a deeper1 deeper2 &&
        check_files repo/deep/deeper1 a deepest &&
@@ -401,8 +401,8 @@ test_expect_success 'revert to old sparse-checkout on empty update' '
                git add file &&
                git commit -m "test" &&
                git sparse-checkout set nothing 2>err &&
-               test_i18ngrep ! "Sparse checkout leaves no entry on working directory" err &&
-               test_i18ngrep ! ".git/index.lock" err &&
+               test_grep ! "Sparse checkout leaves no entry on working directory" err &&
+               test_grep ! ".git/index.lock" err &&
                git sparse-checkout set --no-cone file
        )
 '
@@ -411,14 +411,14 @@ test_expect_success 'fail when lock is taken' '
        test_when_finished rm -rf repo/.git/info/sparse-checkout.lock &&
        touch repo/.git/info/sparse-checkout.lock &&
        test_must_fail git -C repo sparse-checkout set deep 2>err &&
-       test_i18ngrep "Unable to create .*\.lock" err
+       test_grep "Unable to create .*\.lock" err
 '
 
 test_expect_success '.gitignore should not warn about cone mode' '
        git -C repo config --worktree core.sparseCheckoutCone true &&
        echo "**/bin/*" >repo/.gitignore &&
        git -C repo reset --hard 2>err &&
-       test_i18ngrep ! "disabling cone patterns" err
+       test_grep ! "disabling cone patterns" err
 '
 
 test_expect_success 'sparse-checkout (init|set|disable) warns with dirty status' '
@@ -426,10 +426,10 @@ test_expect_success 'sparse-checkout (init|set|disable) warns with dirty status'
        echo dirty >dirty/folder1/a &&
 
        git -C dirty sparse-checkout init --no-cone 2>err &&
-       test_i18ngrep "warning.*The following paths are not up to date" err &&
+       test_grep "warning.*The following paths are not up to date" err &&
 
        git -C dirty sparse-checkout set /folder2/* /deep/deeper1/* 2>err &&
-       test_i18ngrep "warning.*The following paths are not up to date" err &&
+       test_grep "warning.*The following paths are not up to date" err &&
        test_path_is_file dirty/folder1/a &&
 
        git -C dirty sparse-checkout disable 2>err &&
@@ -453,14 +453,14 @@ test_expect_success 'sparse-checkout (init|set|disable) warns with unmerged stat
        git -C unmerged update-index --index-info <input &&
 
        git -C unmerged sparse-checkout init --no-cone 2>err &&
-       test_i18ngrep "warning.*The following paths are unmerged" err &&
+       test_grep "warning.*The following paths are unmerged" err &&
 
        git -C unmerged sparse-checkout set /folder2/* /deep/deeper1/* 2>err &&
-       test_i18ngrep "warning.*The following paths are unmerged" err &&
+       test_grep "warning.*The following paths are unmerged" err &&
        test_path_is_file dirty/folder1/a &&
 
        git -C unmerged sparse-checkout disable 2>err &&
-       test_i18ngrep "warning.*The following paths are unmerged" err &&
+       test_grep "warning.*The following paths are unmerged" err &&
 
        git -C unmerged reset --hard &&
        git -C unmerged sparse-checkout init --no-cone &&
@@ -480,24 +480,24 @@ test_expect_failure 'sparse-checkout reapply' '
        git -C tweak update-index --index-info <input &&
 
        git -C tweak sparse-checkout init --cone 2>err &&
-       test_i18ngrep "warning.*The following paths are not up to date" err &&
-       test_i18ngrep "warning.*The following paths are unmerged" err &&
+       test_grep "warning.*The following paths are not up to date" err &&
+       test_grep "warning.*The following paths are unmerged" err &&
 
        git -C tweak sparse-checkout set folder2 deep/deeper1 2>err &&
-       test_i18ngrep "warning.*The following paths are not up to date" err &&
-       test_i18ngrep "warning.*The following paths are unmerged" err &&
+       test_grep "warning.*The following paths are not up to date" err &&
+       test_grep "warning.*The following paths are unmerged" err &&
 
        git -C tweak sparse-checkout reapply 2>err &&
-       test_i18ngrep "warning.*The following paths are not up to date" err &&
+       test_grep "warning.*The following paths are not up to date" err &&
        test_path_is_file tweak/deep/deeper2/a &&
-       test_i18ngrep "warning.*The following paths are unmerged" err &&
+       test_grep "warning.*The following paths are unmerged" err &&
        test_path_is_file tweak/folder1/a &&
 
        git -C tweak checkout HEAD deep/deeper2/a &&
        git -C tweak sparse-checkout reapply 2>err &&
-       test_i18ngrep ! "warning.*The following paths are not up to date" err &&
+       test_grep ! "warning.*The following paths are not up to date" err &&
        test_path_is_missing tweak/deep/deeper2/a &&
-       test_i18ngrep "warning.*The following paths are unmerged" err &&
+       test_grep "warning.*The following paths are unmerged" err &&
        test_path_is_file tweak/folder1/a &&
 
        # NEEDSWORK: We are asking to update a file outside of the
@@ -578,8 +578,8 @@ test_expect_success 'check-rules interaction with submodules' '
        git -C super ls-tree --name-only -r HEAD >all-files &&
        git -C super sparse-checkout check-rules >check-rules-matches <all-files &&
 
-       test_i18ngrep ! "modules/" check-rules-matches &&
-       test_i18ngrep "folder1/" check-rules-matches
+       test_grep ! "modules/" check-rules-matches &&
+       test_grep "folder1/" check-rules-matches
 '
 
 test_expect_success 'different sparse-checkouts with worktrees' '
@@ -616,7 +616,7 @@ check_read_tree_errors () {
        then
                test_must_be_empty err
        else
-               test_i18ngrep "$ERRORS" err
+               test_grep "$ERRORS" err
        fi &&
        check_files $REPO $FILES
 }
@@ -898,32 +898,32 @@ test_expect_success 'setup bare repo' '
 '
 test_expect_success 'list fails outside work tree' '
        test_must_fail git -C bare sparse-checkout list 2>err &&
-       test_i18ngrep "this operation must be run in a work tree" err
+       test_grep "this operation must be run in a work tree" err
 '
 
 test_expect_success 'add fails outside work tree' '
        test_must_fail git -C bare sparse-checkout add deeper 2>err &&
-       test_i18ngrep "this operation must be run in a work tree" err
+       test_grep "this operation must be run in a work tree" err
 '
 
 test_expect_success 'set fails outside work tree' '
        test_must_fail git -C bare sparse-checkout set deeper 2>err &&
-       test_i18ngrep "this operation must be run in a work tree" err
+       test_grep "this operation must be run in a work tree" err
 '
 
 test_expect_success 'init fails outside work tree' '
        test_must_fail git -C bare sparse-checkout init 2>err &&
-       test_i18ngrep "this operation must be run in a work tree" err
+       test_grep "this operation must be run in a work tree" err
 '
 
 test_expect_success 'reapply fails outside work tree' '
        test_must_fail git -C bare sparse-checkout reapply 2>err &&
-       test_i18ngrep "this operation must be run in a work tree" err
+       test_grep "this operation must be run in a work tree" err
 '
 
 test_expect_success 'disable fails outside work tree' '
        test_must_fail git -C bare sparse-checkout disable 2>err &&
-       test_i18ngrep "this operation must be run in a work tree" err
+       test_grep "this operation must be run in a work tree" err
 '
 
 test_expect_success 'setup clean' '
@@ -946,8 +946,8 @@ test_expect_success 'check-rules cone mode' '
 
        git -C repo sparse-checkout check-rules >check-rules-default <all-files &&
 
-       test_i18ngrep "deep/deeper1/deepest/a" check-rules-file &&
-       test_i18ngrep ! "deep/deeper2" check-rules-file &&
+       test_grep "deep/deeper1/deepest/a" check-rules-file &&
+       test_grep ! "deep/deeper2" check-rules-file &&
 
        test_cmp check-rules-file ls-files &&
        test_cmp check-rules-file check-rules-default
index 8a95adf4b50de6b543598ceac84f8515d9442f4d..12e971b1d178dc5fd8cab642d1d0761d6ba90a47 100755 (executable)
@@ -337,8 +337,8 @@ test_expect_success 'status reports sparse-checkout' '
        init_repos &&
        git -C sparse-checkout status >full &&
        git -C sparse-index status >sparse &&
-       test_i18ngrep "You are in a sparse checkout with " full &&
-       test_i18ngrep "You are in a sparse checkout." sparse
+       test_grep "You are in a sparse checkout with " full &&
+       test_grep "You are in a sparse checkout." sparse
 '
 
 test_expect_success 'add, commit, checkout' '
@@ -1182,7 +1182,7 @@ test_expect_success 'checkout-index outside sparse definition' '
        # Without --ignore-skip-worktree-bits, outside-of-cone files will trigger
        # an error
        test_sparse_match test_must_fail git checkout-index -- folder1/a &&
-       test_i18ngrep "folder1/a has skip-worktree enabled" sparse-checkout-err &&
+       test_grep "folder1/a has skip-worktree enabled" sparse-checkout-err &&
        test_path_is_missing folder1/a &&
 
        # With --ignore-skip-worktree-bits, outside-of-cone files are checked out
index 387d336c91f44e58d1e5073febdae266156212c8..f4e27521344920ca5cf85b20a263487e2d794b52 100755 (executable)
@@ -453,7 +453,7 @@ test_expect_success 'get bool variable with empty value' '
 
 test_expect_success 'no arguments, but no crash' '
        test_must_fail git config >output 2>&1 &&
-       test_i18ngrep usage output
+       test_grep usage output
 '
 
 cat > .git/config << EOF
@@ -720,25 +720,25 @@ test_expect_success 'invalid unit' '
        git config aninvalid.unit "1auto" &&
        test_cmp_config 1auto aninvalid.unit &&
        test_must_fail git config --int --get aninvalid.unit 2>actual &&
-       test_i18ngrep "bad numeric config value .1auto. for .aninvalid.unit. in file .git/config: invalid unit" actual
+       test_grep "bad numeric config value .1auto. for .aninvalid.unit. in file .git/config: invalid unit" actual
 '
 
 test_expect_success 'invalid unit boolean' '
        git config commit.gpgsign "1true" &&
        test_cmp_config 1true commit.gpgsign &&
        test_must_fail git config --bool --get commit.gpgsign 2>actual &&
-       test_i18ngrep "bad boolean config value .1true. for .commit.gpgsign." actual
+       test_grep "bad boolean config value .1true. for .commit.gpgsign." actual
 '
 
 test_expect_success 'line number is reported correctly' '
        printf "[bool]\n\tvar\n" >invalid &&
        test_must_fail git config -f invalid --path bool.var 2>actual &&
-       test_i18ngrep "line 2" actual
+       test_grep "line 2" actual
 '
 
 test_expect_success 'invalid stdin config' '
        echo "[broken" | test_must_fail git config --list --file - >output 2>&1 &&
-       test_i18ngrep "bad config line 1 in standard input" output
+       test_grep "bad config line 1 in standard input" output
 '
 
 cat > expect << EOF
@@ -919,7 +919,7 @@ test_expect_success !MINGW 'get --path copes with unset $HOME' '
                git config --get --path path.normal >>result &&
                git config --get --path path.trailingtilde >>result
        ) &&
-       test_i18ngrep "[Ff]ailed to expand.*~/" msg &&
+       test_grep "[Ff]ailed to expand.*~/" msg &&
        test_cmp expect result
 '
 
@@ -986,7 +986,7 @@ test_expect_success 'get --type=color barfs on non-color' '
 
 test_expect_success 'set --type=color barfs on non-color' '
        test_must_fail git config --type=color foo.color "not-a-color" 2>error &&
-       test_i18ngrep "cannot parse color" error
+       test_grep "cannot parse color" error
 '
 
 cat > expect << EOF
@@ -1447,12 +1447,12 @@ test_expect_success 'git --config-env with missing value' '
 
 test_expect_success 'git --config-env fails with invalid parameters' '
        test_must_fail git --config-env=foo.flag config --bool foo.flag 2>error &&
-       test_i18ngrep "invalid config format: foo.flag" error &&
+       test_grep "invalid config format: foo.flag" error &&
        test_must_fail git --config-env=foo.flag= config --bool foo.flag 2>error &&
-       test_i18ngrep "missing environment variable name for configuration ${SQ}foo.flag${SQ}" error &&
+       test_grep "missing environment variable name for configuration ${SQ}foo.flag${SQ}" error &&
        sane_unset NONEXISTENT &&
        test_must_fail git --config-env=foo.flag=NONEXISTENT config --bool foo.flag 2>error &&
-       test_i18ngrep "missing environment variable ${SQ}NONEXISTENT${SQ} for configuration ${SQ}foo.flag${SQ}" error
+       test_grep "missing environment variable ${SQ}NONEXISTENT${SQ} for configuration ${SQ}foo.flag${SQ}" error
 '
 
 test_expect_success 'git -c and --config-env work together' '
@@ -1533,21 +1533,21 @@ test_expect_success 'git config ignores pairs with empty count' '
 
 test_expect_success 'git config fails with invalid count' '
        test_must_fail env GIT_CONFIG_COUNT=10a git config --list 2>error &&
-       test_i18ngrep "bogus count" error &&
+       test_grep "bogus count" error &&
        test_must_fail env GIT_CONFIG_COUNT=9999999999999999 git config --list 2>error &&
-       test_i18ngrep "too many entries" error
+       test_grep "too many entries" error
 '
 
 test_expect_success 'git config fails with missing config key' '
        test_must_fail env GIT_CONFIG_COUNT=1 GIT_CONFIG_VALUE_0="value" \
                git config --list 2>error &&
-       test_i18ngrep "missing config key" error
+       test_grep "missing config key" error
 '
 
 test_expect_success 'git config fails with missing config value' '
        test_must_fail env GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0="pair.one" \
                git config --list 2>error &&
-       test_i18ngrep "missing config value" error
+       test_grep "missing config value" error
 '
 
 test_expect_success 'git config fails with invalid config pair key' '
@@ -1617,7 +1617,7 @@ test_expect_success 'barf on syntax error' '
        key garbage
        EOF
        test_must_fail git config --get section.key 2>error &&
-       test_i18ngrep " line 3 " error
+       test_grep " line 3 " error
 '
 
 test_expect_success 'barf on incomplete section header' '
@@ -1627,7 +1627,7 @@ test_expect_success 'barf on incomplete section header' '
        key = value
        EOF
        test_must_fail git config --get section.key 2>error &&
-       test_i18ngrep " line 2 " error
+       test_grep " line 2 " error
 '
 
 test_expect_success 'barf on incomplete string' '
@@ -1637,7 +1637,7 @@ test_expect_success 'barf on incomplete string' '
        key = "value string
        EOF
        test_must_fail git config --get section.key 2>error &&
-       test_i18ngrep " line 3 " error
+       test_grep " line 3 " error
 '
 
 test_expect_success 'urlmatch' '
@@ -2266,17 +2266,17 @@ test_expect_success 'identical mixed --type specifiers are allowed' '
 
 test_expect_success 'non-identical modern --type specifiers are not allowed' '
        test_must_fail git config --type=int --type=bool section.big 2>error &&
-       test_i18ngrep "only one type at a time" error
+       test_grep "only one type at a time" error
 '
 
 test_expect_success 'non-identical legacy --type specifiers are not allowed' '
        test_must_fail git config --int --bool section.big 2>error &&
-       test_i18ngrep "only one type at a time" error
+       test_grep "only one type at a time" error
 '
 
 test_expect_success 'non-identical mixed --type specifiers are not allowed' '
        test_must_fail git config --type=int --bool section.big 2>error &&
-       test_i18ngrep "only one type at a time" error
+       test_grep "only one type at a time" error
 '
 
 test_expect_success '--type allows valid type specifiers' '
@@ -2293,7 +2293,7 @@ test_expect_success 'unset type specifiers may be reset to conflicting ones' '
 
 test_expect_success '--type rejects unknown specifiers' '
        test_must_fail git config --type=nonsense section.foo 2>error &&
-       test_i18ngrep "unrecognized --type argument" error
+       test_grep "unrecognized --type argument" error
 '
 
 test_expect_success '--type=int requires at least one digit' '
@@ -2339,7 +2339,7 @@ test_expect_success 'set all config with value-pattern' '
 
        # multiple matches => failure
        test_must_fail git config --file=config abc.key three o+ 2>err &&
-       test_i18ngrep "has multiple values" err &&
+       test_grep "has multiple values" err &&
 
        # multiple values, no match => add
        git config --file=config abc.key three a+ &&
index 0a7099d6f52b68cf9abc263933267925a994378a..b9852fe40e4a045ae4a355a85aa6e2d14d758479 100755 (executable)
@@ -63,7 +63,7 @@ test_expect_success 'parse errors in blobs are properly attributed' '
        git commit -m broken &&
 
        test_must_fail git config --blob=HEAD:config some.value 2>err &&
-       test_i18ngrep "HEAD:config" err
+       test_grep "HEAD:config" err
 '
 
 test_expect_success 'can parse blob ending with CR' '
index 777648722c72830c86d27f7083fac78843844ca0..3bfec07f1abcc1d997f428e84acf6cc3490b1b6a 100755 (executable)
@@ -172,7 +172,7 @@ test_expect_success 'find string value for a key' '
 
 test_expect_success 'check line error when NULL string is queried' '
        test_expect_code 128 test-tool config get_string case.foo 2>result &&
-       test_i18ngrep "fatal: .*case\.foo.*\.git/config.*line 7" result
+       test_grep "fatal: .*case\.foo.*\.git/config.*line 7" result
 '
 
 test_expect_success 'find integer if value is non parse-able' '
@@ -342,14 +342,14 @@ test_expect_success 'check line errors for malformed values' '
                br
        EOF
        test_expect_code 128 git br 2>result &&
-       test_i18ngrep "missing value for .alias\.br" result &&
-       test_i18ngrep "fatal: .*\.git/config" result &&
-       test_i18ngrep "fatal: .*line 2" result
+       test_grep "missing value for .alias\.br" result &&
+       test_grep "fatal: .*\.git/config" result &&
+       test_grep "fatal: .*line 2" result
 '
 
 test_expect_success 'error on modifying repo config without repo' '
        nongit test_must_fail git config a.b c 2>err &&
-       test_i18ngrep "not in a git directory" err
+       test_grep "not in a git directory" err
 '
 
 cmdline_config="'foo.bar=from-cmdline'"
index 537435b90ae9314a8062c81186fd00853d38b230..523aa99a1e264661c9af03e450ff14c345831617 100755 (executable)
@@ -78,7 +78,7 @@ test_with_config () {
 
 test_expect_success 'ignore .git/ with incompatible repository version' '
        test_with_config "[core]repositoryformatversion = 999999" 2>err &&
-       test_i18ngrep "warning:.* Expected git repo version <= [1-9]" err
+       test_grep "warning:.* Expected git repo version <= [1-9]" err
 '
 
 test_expect_failure 'ignore .git/ with invalid repository version' '
index 09b10c144ba9d162635a12d66b8796b9cd94fb6c..1a90d31201a612b69944bffba27b347eeb0ab580 100755 (executable)
@@ -26,12 +26,12 @@ test_expect_success 'canonicalizes --default with appropriate type' '
 test_expect_success 'dies when --default cannot be parsed' '
        test_must_fail git config -f config --type=expiry-date --default=x --get \
                not.a.section 2>error &&
-       test_i18ngrep "failed to format default config value" error
+       test_grep "failed to format default config value" error
 '
 
 test_expect_success 'does not allow --default without --get' '
        test_must_fail git config --default=quux --unset a.section >output 2>&1 &&
-       test_i18ngrep "\-\-default is only applicable to" output
+       test_grep "\-\-default is only applicable to" output
 '
 
 test_done
index 4d66cd7f4a1fce8ebdaa42a37e7bd8f03853645e..9ac4b7036bf7ec8fe0befca6f08797c83a72c4b0 100755 (executable)
@@ -410,7 +410,7 @@ test_expect_success 'Query "main@{2005-05-26 23:33:01}" (middle of history with
        git rev-parse --verify "main@{2005-05-26 23:33:01}" >o 2>e &&
        echo "$B" >expect &&
        test_cmp expect o &&
-       test_i18ngrep -F "warning: log for ref $m has gap after $gd" e
+       test_grep -F "warning: log for ref $m has gap after $gd" e
 '
 test_expect_success 'Query "main@{2005-05-26 23:38:00}" (middle of history)' '
        test_when_finished "rm -f o e" &&
@@ -431,7 +431,7 @@ test_expect_success 'Query "main@{2005-05-28}" (past end of history)' '
        git rev-parse --verify "main@{2005-05-28}" >o 2>e &&
        echo "$D" >expect &&
        test_cmp expect o &&
-       test_i18ngrep -F "warning: log for ref $m unexpectedly ended on $ld" e
+       test_grep -F "warning: log for ref $m unexpectedly ended on $ld" e
 '
 
 rm -f .git/$m .git/logs/$m expect
@@ -486,7 +486,7 @@ test_expect_success 'git cat-file blob main@{2005-05-26 23:42}:F (expect OTHER)'
 test_expect_success 'given old value for missing pseudoref, do not create' '
        test_must_fail git update-ref PSEUDOREF $A $B 2>err &&
        test_must_fail git rev-parse PSEUDOREF &&
-       test_i18ngrep "unable to resolve reference" err
+       test_grep "unable to resolve reference" err
 '
 
 test_expect_success 'create pseudoref' '
@@ -507,7 +507,7 @@ test_expect_success 'overwrite pseudoref with correct old value' '
 test_expect_success 'do not overwrite pseudoref with wrong old value' '
        test_must_fail git update-ref PSEUDOREF $D $E 2>err &&
        test $C = $(git rev-parse PSEUDOREF) &&
-       test_i18ngrep "cannot lock ref.*expected" err
+       test_grep "cannot lock ref.*expected" err
 '
 
 test_expect_success 'delete pseudoref' '
@@ -519,7 +519,7 @@ test_expect_success 'do not delete pseudoref with wrong old value' '
        git update-ref PSEUDOREF $A &&
        test_must_fail git update-ref -d PSEUDOREF $B 2>err &&
        test $A = $(git rev-parse PSEUDOREF) &&
-       test_i18ngrep "cannot lock ref.*expected" err
+       test_grep "cannot lock ref.*expected" err
 '
 
 test_expect_success 'delete pseudoref with correct old value' '
@@ -536,7 +536,7 @@ test_expect_success 'do not overwrite pseudoref with old OID zero' '
        test_when_finished git update-ref -d PSEUDOREF &&
        test_must_fail git update-ref PSEUDOREF $B $Z 2>err &&
        test $A = $(git rev-parse PSEUDOREF) &&
-       test_i18ngrep "already exists" err
+       test_grep "already exists" err
 '
 
 # Test --stdin
@@ -556,7 +556,7 @@ test_expect_success 'stdin test setup' '
 
 test_expect_success '-z fails without --stdin' '
        test_must_fail git update-ref -z $m $m $m 2>err &&
-       test_i18ngrep "usage: git update-ref" err
+       test_grep "usage: git update-ref" err
 '
 
 test_expect_success 'stdin works with no input' '
@@ -674,7 +674,7 @@ test_expect_success 'stdin fails with duplicate refs' '
        create $a $m
        EOF
        test_must_fail git update-ref --stdin <stdin 2>err &&
-       test_i18ngrep "fatal: multiple updates for ref '"'"'$a'"'"' not allowed" err
+       test_grep "fatal: multiple updates for ref '"'"'$a'"'"' not allowed" err
 '
 
 test_expect_success 'stdin create ref works' '
@@ -1107,7 +1107,7 @@ test_expect_success 'stdin -z fails option with unknown name' '
 test_expect_success 'stdin -z fails with duplicate refs' '
        printf $F "create $a" "$m" "create $b" "$m" "create $a" "$m" >stdin &&
        test_must_fail git update-ref -z --stdin <stdin 2>err &&
-       test_i18ngrep "fatal: multiple updates for ref '"'"'$a'"'"' not allowed" err
+       test_grep "fatal: multiple updates for ref '"'"'$a'"'"' not allowed" err
 '
 
 test_expect_success 'stdin -z create ref works' '
@@ -1338,7 +1338,7 @@ test_expect_success 'fails with duplicate HEAD update' '
        update HEAD $B
        EOF
        test_must_fail git update-ref --stdin <stdin 2>err &&
-       test_i18ngrep "fatal: multiple updates for '\''HEAD'\'' (including one via its referent .refs/heads/target1.) are not allowed" err &&
+       test_grep "fatal: multiple updates for '\''HEAD'\'' (including one via its referent .refs/heads/target1.) are not allowed" err &&
        echo "refs/heads/target1" >expect &&
        git symbolic-ref HEAD >actual &&
        test_cmp expect actual &&
@@ -1355,7 +1355,7 @@ test_expect_success 'fails with duplicate ref update via symref' '
        update refs/heads/symref2 $B
        EOF
        test_must_fail git update-ref --stdin <stdin 2>err &&
-       test_i18ngrep "fatal: multiple updates for '\''refs/heads/target2'\'' (including one via symref .refs/heads/symref2.) are not allowed" err &&
+       test_grep "fatal: multiple updates for '\''refs/heads/target2'\'' (including one via symref .refs/heads/symref2.) are not allowed" err &&
        echo "refs/heads/target2" >expect &&
        git symbolic-ref refs/heads/symref2 >actual &&
        test_cmp expect actual &&
index 937ae0d73347c3d0797fd28b5c3bfa83baf55632..0369beea33b1aff41662390245fdf2ccf21b1cfb 100755 (executable)
@@ -29,7 +29,7 @@ test_update_rejected () {
        fi &&
        printf "create $prefix/%s $C\n" $create >input &&
        test_must_fail git update-ref --stdin <input 2>output.err &&
-       test_i18ngrep -F "$error" output.err &&
+       test_grep -F "$error" output.err &&
        git for-each-ref $prefix >actual &&
        test_cmp unchanged actual
 }
@@ -613,7 +613,7 @@ test_expect_success REFFILES 'delete fails cleanly if packed-refs file is locked
        test_when_finished "rm -f .git/packed-refs.lock" &&
        test_must_fail git update-ref -d $prefix/foo >out 2>err &&
        git for-each-ref $prefix >actual &&
-       test_i18ngrep "Unable to create $SQ.*packed-refs.lock$SQ: " err &&
+       test_grep "Unable to create $SQ.*packed-refs.lock$SQ: " err &&
        test_cmp unchanged actual
 '
 
index 6c45965b1e4bef9652a1bc876f28605ad213b261..e1fc949f9a57b58130ae2d69e8a89fb2b4153837 100755 (executable)
@@ -29,7 +29,7 @@ check_fsck () {
        '')
                test_must_be_empty fsck.output ;;
        *)
-               test_i18ngrep "$1" fsck.output ;;
+               test_grep "$1" fsck.output ;;
        esac
 }
 
@@ -308,9 +308,9 @@ test_expect_success 'git reflog expire unknown reference' '
        test_config gc.reflogexpireunreachable never &&
 
        test_must_fail git reflog expire main@{123} 2>stderr &&
-       test_i18ngrep "points nowhere" stderr &&
+       test_grep "points nowhere" stderr &&
        test_must_fail git reflog expire does-not-exist 2>stderr &&
-       test_i18ngrep "points nowhere" stderr
+       test_grep "points nowhere" stderr
 '
 
 test_expect_success 'checkout should not delete log for packed ref' '
index b32ca798f9ff9fb60796dfefd41ad391e229dbf5..2092488090de5624103f277b8ad3d44030ce3767 100755 (executable)
@@ -37,7 +37,7 @@ test_expect_success 'hook aborts updating ref in prepared state' '
                fi
        EOF
        test_must_fail git update-ref HEAD POST 2>err &&
-       test_i18ngrep "ref updates aborted by hook" err
+       test_grep "ref updates aborted by hook" err
 '
 
 test_expect_success 'hook gets all queued updates in prepared state' '
index ff1c967d550318e0b17ad3c9d1e08654c51e7506..4da539cf50acac0670130d85ce2bd0a7dcc501f1 100755 (executable)
@@ -47,7 +47,7 @@ test_expect_success 'git branch shows badly named ref as warning' '
        test-tool ref-store main update-ref msg "refs/heads/broken...ref" $main_sha1 $ZERO_OID REF_SKIP_REFNAME_VERIFICATION &&
        test_when_finished "test-tool ref-store main delete-refs REF_NO_DEREF msg refs/heads/broken...ref" &&
        git branch >output 2>error &&
-       test_i18ngrep -e "ignoring ref with broken name refs/heads/broken\.\.\.ref" error &&
+       test_grep -e "ignoring ref with broken name refs/heads/broken\.\.\.ref" error &&
        ! grep -e "broken\.\.\.ref" output
 '
 
@@ -158,7 +158,7 @@ test_expect_success 'rev-parse skips symref pointing to broken name' '
        git rev-parse --verify one >expect &&
        git rev-parse --verify shadow >actual 2>err &&
        test_cmp expect actual &&
-       test_i18ngrep "ignoring dangling symref refs/tags/shadow" err
+       test_grep "ignoring dangling symref refs/tags/shadow" err
 '
 
 test_expect_success 'for-each-ref emits warnings for broken names' '
@@ -172,9 +172,9 @@ test_expect_success 'for-each-ref emits warnings for broken names' '
        ! grep -e "broken\.\.\.ref" output &&
        ! grep -e "badname" output &&
        ! grep -e "broken\.\.\.symref" output &&
-       test_i18ngrep "ignoring ref with broken name refs/heads/broken\.\.\.ref" error &&
-       test_i18ngrep ! "ignoring broken ref refs/heads/badname" error &&
-       test_i18ngrep "ignoring ref with broken name refs/heads/broken\.\.\.symref" error
+       test_grep "ignoring ref with broken name refs/heads/broken\.\.\.ref" error &&
+       test_grep ! "ignoring broken ref refs/heads/badname" error &&
+       test_grep "ignoring ref with broken name refs/heads/broken\.\.\.symref" error
 '
 
 test_expect_success 'update-ref -d can delete broken name' '
@@ -192,7 +192,7 @@ test_expect_success 'branch -d can delete broken name' '
        test-tool ref-store main update-ref msg "refs/heads/broken...ref" $main_sha1 $ZERO_OID REF_SKIP_REFNAME_VERIFICATION &&
        test_when_finished "test-tool ref-store main delete-refs REF_NO_DEREF msg refs/heads/broken...ref" &&
        git branch -d broken...ref >output 2>error &&
-       test_i18ngrep "Deleted branch broken...ref (was broken)" output &&
+       test_grep "Deleted branch broken...ref (was broken)" output &&
        test_must_be_empty error &&
        git branch >output 2>error &&
        ! grep -e "broken\.\.\.ref" error &&
@@ -218,7 +218,7 @@ test_expect_success 'branch -d can delete symref to broken name' '
        test_when_finished "test-tool ref-store main delete-refs REF_NO_DEREF msg refs/heads/badname" &&
        git branch -d badname >output 2>error &&
        test_path_is_missing .git/refs/heads/badname &&
-       test_i18ngrep "Deleted branch badname (was refs/heads/broken\.\.\.ref)" output &&
+       test_grep "Deleted branch badname (was refs/heads/broken\.\.\.ref)" output &&
        test_must_be_empty error
 '
 
@@ -236,7 +236,7 @@ test_expect_success 'branch -d can delete dangling symref to broken name' '
        test_when_finished "test-tool ref-store main delete-refs REF_NO_DEREF msg refs/heads/badname" &&
        git branch -d badname >output 2>error &&
        test_path_is_missing .git/refs/heads/badname &&
-       test_i18ngrep "Deleted branch badname (was refs/heads/broken\.\.\.ref)" output &&
+       test_grep "Deleted branch badname (was refs/heads/broken\.\.\.ref)" output &&
        test_must_be_empty error
 '
 
@@ -265,7 +265,7 @@ test_expect_success 'branch -d can delete symref with broken name' '
        test_when_finished "test-tool ref-store main delete-refs REF_NO_DEREF msg refs/heads/broken...symref" &&
        git branch -d broken...symref >output 2>error &&
        test_path_is_missing .git/refs/heads/broken...symref &&
-       test_i18ngrep "Deleted branch broken...symref (was refs/heads/main)" output &&
+       test_grep "Deleted branch broken...symref (was refs/heads/main)" output &&
        test_must_be_empty error
 '
 
@@ -283,7 +283,7 @@ test_expect_success 'branch -d can delete dangling symref with broken name' '
        test_when_finished "test-tool ref-store main delete-refs REF_NO_DEREF msg refs/heads/broken...symref" &&
        git branch -d broken...symref >output 2>error &&
        test_path_is_missing .git/refs/heads/broken...symref &&
-       test_i18ngrep "Deleted branch broken...symref (was refs/heads/idonotexist)" output &&
+       test_grep "Deleted branch broken...symref (was refs/heads/idonotexist)" output &&
        test_must_be_empty error
 '
 
@@ -292,7 +292,7 @@ test_expect_success 'update-ref -d cannot delete non-ref in .git dir' '
        echo precious >expect &&
        test_must_fail git update-ref -d my-private-file >output 2>error &&
        test_must_be_empty output &&
-       test_i18ngrep -e "refusing to update ref with bad name" error &&
+       test_grep -e "refusing to update ref with bad name" error &&
        test_cmp expect .git/my-private-file
 '
 
index 5805d47eb96c1eb72c761e50a8ba4670f5d7947a..e2b30fb75e9c9b70f39b7a2ab72b5dfaf2ea13fe 100755 (executable)
@@ -118,7 +118,7 @@ test_expect_success 'branch pointing to non-commit' '
        git rev-parse HEAD^{tree} >.git/refs/heads/invalid &&
        test_when_finished "git update-ref -d refs/heads/invalid" &&
        test_must_fail git fsck 2>out &&
-       test_i18ngrep "not a commit" out
+       test_grep "not a commit" out
 '
 
 test_expect_success 'HEAD link pointing at a funny object' '
@@ -127,7 +127,7 @@ test_expect_success 'HEAD link pointing at a funny object' '
        echo $ZERO_OID >.git/HEAD &&
        # avoid corrupt/broken HEAD from interfering with repo discovery
        test_must_fail env GIT_DIR=.git git fsck 2>out &&
-       test_i18ngrep "detached HEAD points" out
+       test_grep "detached HEAD points" out
 '
 
 test_expect_success 'HEAD link pointing at a funny place' '
@@ -136,7 +136,7 @@ test_expect_success 'HEAD link pointing at a funny place' '
        echo "ref: refs/funny/place" >.git/HEAD &&
        # avoid corrupt/broken HEAD from interfering with repo discovery
        test_must_fail env GIT_DIR=.git git fsck 2>out &&
-       test_i18ngrep "HEAD points to something strange" out
+       test_grep "HEAD points to something strange" out
 '
 
 test_expect_success 'HEAD link pointing at a funny object (from different wt)' '
@@ -147,7 +147,7 @@ test_expect_success 'HEAD link pointing at a funny object (from different wt)' '
        echo $ZERO_OID >.git/HEAD &&
        # avoid corrupt/broken HEAD from interfering with repo discovery
        test_must_fail git -C wt fsck 2>out &&
-       test_i18ngrep "main-worktree/HEAD: detached HEAD points" out
+       test_grep "main-worktree/HEAD: detached HEAD points" out
 '
 
 test_expect_success 'other worktree HEAD link pointing at a funny object' '
@@ -155,7 +155,7 @@ test_expect_success 'other worktree HEAD link pointing at a funny object' '
        git worktree add other &&
        echo $ZERO_OID >.git/worktrees/other/HEAD &&
        test_must_fail git fsck 2>out &&
-       test_i18ngrep "worktrees/other/HEAD: detached HEAD points" out
+       test_grep "worktrees/other/HEAD: detached HEAD points" out
 '
 
 test_expect_success 'other worktree HEAD link pointing at missing object' '
@@ -163,7 +163,7 @@ test_expect_success 'other worktree HEAD link pointing at missing object' '
        git worktree add other &&
        echo "Contents missing from repo" | git hash-object --stdin >.git/worktrees/other/HEAD &&
        test_must_fail git fsck 2>out &&
-       test_i18ngrep "worktrees/other/HEAD: invalid sha1 pointer" out
+       test_grep "worktrees/other/HEAD: invalid sha1 pointer" out
 '
 
 test_expect_success 'other worktree HEAD link pointing at a funny place' '
@@ -171,7 +171,7 @@ test_expect_success 'other worktree HEAD link pointing at a funny place' '
        git worktree add other &&
        echo "ref: refs/funny/place" >.git/worktrees/other/HEAD &&
        test_must_fail git fsck 2>out &&
-       test_i18ngrep "worktrees/other/HEAD points to something strange" out
+       test_grep "worktrees/other/HEAD points to something strange" out
 '
 
 test_expect_success 'commit with multiple signatures is okay' '
@@ -217,7 +217,7 @@ test_expect_success 'email with embedded > is not okay' '
        git update-ref refs/heads/bogus "$new" &&
        test_when_finished "git update-ref -d refs/heads/bogus" &&
        test_must_fail git fsck 2>out &&
-       test_i18ngrep "error in commit $new" out
+       test_grep "error in commit $new" out
 '
 
 test_expect_success 'missing < email delimiter is reported nicely' '
@@ -228,7 +228,7 @@ test_expect_success 'missing < email delimiter is reported nicely' '
        git update-ref refs/heads/bogus "$new" &&
        test_when_finished "git update-ref -d refs/heads/bogus" &&
        test_must_fail git fsck 2>out &&
-       test_i18ngrep "error in commit $new.* - bad name" out
+       test_grep "error in commit $new.* - bad name" out
 '
 
 test_expect_success 'missing email is reported nicely' '
@@ -239,7 +239,7 @@ test_expect_success 'missing email is reported nicely' '
        git update-ref refs/heads/bogus "$new" &&
        test_when_finished "git update-ref -d refs/heads/bogus" &&
        test_must_fail git fsck 2>out &&
-       test_i18ngrep "error in commit $new.* - missing email" out
+       test_grep "error in commit $new.* - missing email" out
 '
 
 test_expect_success '> in name is reported' '
@@ -250,7 +250,7 @@ test_expect_success '> in name is reported' '
        git update-ref refs/heads/bogus "$new" &&
        test_when_finished "git update-ref -d refs/heads/bogus" &&
        test_must_fail git fsck 2>out &&
-       test_i18ngrep "error in commit $new" out
+       test_grep "error in commit $new" out
 '
 
 # date is 2^64 + 1
@@ -263,7 +263,7 @@ test_expect_success 'integer overflow in timestamps is reported' '
        git update-ref refs/heads/bogus "$new" &&
        test_when_finished "git update-ref -d refs/heads/bogus" &&
        test_must_fail git fsck 2>out &&
-       test_i18ngrep "error in commit $new.*integer overflow" out
+       test_grep "error in commit $new.*integer overflow" out
 '
 
 test_expect_success 'commit with NUL in header' '
@@ -274,7 +274,7 @@ test_expect_success 'commit with NUL in header' '
        git update-ref refs/heads/bogus "$new" &&
        test_when_finished "git update-ref -d refs/heads/bogus" &&
        test_must_fail git fsck 2>out &&
-       test_i18ngrep "error in commit $new.*unterminated header: NUL at offset" out
+       test_grep "error in commit $new.*unterminated header: NUL at offset" out
 '
 
 test_expect_success 'tree object with duplicate entries' '
@@ -295,7 +295,7 @@ test_expect_success 'tree object with duplicate entries' '
                git hash-object --literally -w -t tree --stdin
        ) &&
        test_must_fail git fsck 2>out &&
-       test_i18ngrep "error in tree .*contains duplicate file entries" out
+       test_grep "error in tree .*contains duplicate file entries" out
 '
 
 check_duplicate_names () {
@@ -318,8 +318,8 @@ check_duplicate_names () {
                done >badtree &&
                badtree=$(git mktree <badtree) &&
                test_must_fail git fsck 2>out &&
-               test_i18ngrep "$badtree" out &&
-               test_i18ngrep "error in tree .*contains duplicate file entries" out
+               test_grep "$badtree" out &&
+               test_grep "error in tree .*contains duplicate file entries" out
        '
 }
 
@@ -341,9 +341,9 @@ test_expect_success 'unparseable tree object' '
        commit_sha1=$(git commit-tree $tree_sha1) &&
        git update-ref refs/heads/wrong $commit_sha1 &&
        test_must_fail git fsck 2>out &&
-       test_i18ngrep "error: empty filename in tree entry" out &&
-       test_i18ngrep "$tree_sha1" out &&
-       test_i18ngrep ! "fatal: empty filename in tree entry" out
+       test_grep "error: empty filename in tree entry" out &&
+       test_grep "$tree_sha1" out &&
+       test_grep ! "fatal: empty filename in tree entry" out
 '
 
 test_expect_success 'tree entry with type mismatch' '
@@ -360,8 +360,8 @@ test_expect_success 'tree entry with type mismatch' '
        commit=$(git commit-tree $tree) &&
        git update-ref refs/heads/type_mismatch $commit &&
        test_must_fail git fsck >out 2>&1 &&
-       test_i18ngrep "is a blob, not a tree" out &&
-       test_i18ngrep ! "dangling blob" out
+       test_grep "is a blob, not a tree" out &&
+       test_grep ! "dangling blob" out
 '
 
 test_expect_success 'tree entry with bogus mode' '
@@ -394,7 +394,7 @@ test_expect_success 'tag pointing to nonexistent' '
        echo $tag >.git/refs/tags/invalid &&
        test_when_finished "git update-ref -d refs/tags/invalid" &&
        test_must_fail git fsck --tags >out &&
-       test_i18ngrep "broken link" out
+       test_grep "broken link" out
 '
 
 test_expect_success 'tag pointing to something else than its type' '
@@ -455,7 +455,7 @@ test_expect_success 'tag with bad tagger' '
        echo $tag >.git/refs/tags/wrong &&
        test_when_finished "git update-ref -d refs/tags/wrong" &&
        test_must_fail git fsck --tags 2>out &&
-       test_i18ngrep "error in tag .*: invalid author/committer" out
+       test_grep "error in tag .*: invalid author/committer" out
 '
 
 test_expect_success 'tag with NUL in header' '
@@ -474,7 +474,7 @@ test_expect_success 'tag with NUL in header' '
        echo $tag >.git/refs/tags/wrong &&
        test_when_finished "git update-ref -d refs/tags/wrong" &&
        test_must_fail git fsck --tags 2>out &&
-       test_i18ngrep "error in tag $tag.*unterminated header: NUL at offset" out
+       test_grep "error in tag $tag.*unterminated header: NUL at offset" out
 '
 
 test_expect_success 'cleaned up' '
@@ -504,7 +504,7 @@ test_expect_success 'rev-list --verify-objects with bad sha1' '
        test_when_finished "git update-ref -d refs/heads/bogus" &&
 
        test_might_fail git rev-list --verify-objects refs/heads/bogus >/dev/null 2>out &&
-       test_i18ngrep -q "error: hash mismatch $(dirname $new)$(test_oid ff_2)" out
+       test_grep -q "error: hash mismatch $(dirname $new)$(test_oid ff_2)" out
 '
 
 # An actual bit corruption is more likely than swapped commits, but
@@ -575,7 +575,7 @@ test_expect_success 'fsck notices blob entry pointing to null sha1' '
         sha=$(printf "100644 file$_bz$_bzoid" |
               git hash-object --literally -w --stdin -t tree) &&
          git fsck 2>out &&
-         test_i18ngrep "warning.*null sha1" out
+         test_grep "warning.*null sha1" out
        )
 '
 
@@ -585,7 +585,7 @@ test_expect_success 'fsck notices submodule entry pointing to null sha1' '
         sha=$(printf "160000 submodule$_bz$_bzoid" |
               git hash-object --literally -w --stdin -t tree) &&
          git fsck 2>out &&
-         test_i18ngrep "warning.*null sha1" out
+         test_grep "warning.*null sha1" out
        )
 '
 
@@ -606,7 +606,7 @@ while read name path pretty; do
                        printf "$mode $type %s\t%s" "$value" "$path" >bad &&
                        bad_tree=$(git mktree <bad) &&
                        git fsck 2>out &&
-                       test_i18ngrep "warning.*tree $bad_tree" out
+                       test_grep "warning.*tree $bad_tree" out
                )'
        done <<-\EOF
        100644 blob
@@ -652,9 +652,9 @@ test_expect_success 'NUL in commit' '
                git branch bad $(cat name) &&
 
                test_must_fail git -c fsck.nulInCommit=error fsck 2>warn.1 &&
-               test_i18ngrep nulInCommit warn.1 &&
+               test_grep nulInCommit warn.1 &&
                git fsck 2>warn.2 &&
-               test_i18ngrep nulInCommit warn.2
+               test_grep nulInCommit warn.2
        )
 '
 
@@ -774,7 +774,7 @@ test_expect_success 'fsck --name-objects' '
                tree=$(git rev-parse --verify julius:) &&
                git tag -d julius &&
                test_must_fail git fsck --name-objects >out &&
-               test_i18ngrep "$tree (refs/tags/augustus44\\^:" out
+               test_grep "$tree (refs/tags/augustus44\\^:" out
        )
 '
 
@@ -787,7 +787,7 @@ test_expect_success 'alternate objects are correctly blamed' '
        mkdir alt.git/objects/$(dirname $path) &&
        >alt.git/objects/$(dirname $path)/$(basename $path) &&
        test_must_fail git fsck >out 2>&1 &&
-       test_i18ngrep alt.git out
+       test_grep alt.git out
 '
 
 test_expect_success 'fsck errors in packed objects' '
@@ -806,8 +806,8 @@ test_expect_success 'fsck errors in packed objects' '
        remove_object $one &&
        remove_object $two &&
        test_must_fail git fsck 2>out &&
-       test_i18ngrep "error in commit $one.* - bad name" out &&
-       test_i18ngrep "error in commit $two.* - bad name" out &&
+       test_grep "error in commit $one.* - bad name" out &&
+       test_grep "error in commit $two.* - bad name" out &&
        ! grep corrupt out
 '
 
@@ -824,7 +824,7 @@ test_expect_success 'fsck fails on corrupt packfile' '
        test_when_finished "rm -f .git/objects/pack/pack-$pack.*" &&
        remove_object $hsh &&
        test_must_fail git fsck 2>out &&
-       test_i18ngrep "checksum mismatch" out
+       test_grep "checksum mismatch" out
 '
 
 test_expect_success 'fsck finds problems in duplicate loose objects' '
@@ -861,7 +861,7 @@ test_expect_success 'fsck detects trailing loose garbage (commit)' '
        chmod +w "$file" &&
        echo garbage >>"$file" &&
        test_must_fail git fsck 2>out &&
-       test_i18ngrep "garbage.*$commit" out
+       test_grep "garbage.*$commit" out
 '
 
 test_expect_success 'fsck detects trailing loose garbage (large blob)' '
@@ -871,7 +871,7 @@ test_expect_success 'fsck detects trailing loose garbage (large blob)' '
        chmod +w "$file" &&
        echo garbage >>"$file" &&
        test_must_fail git -c core.bigfilethreshold=5 fsck 2>out &&
-       test_i18ngrep "garbage.*$blob" out
+       test_grep "garbage.*$blob" out
 '
 
 test_expect_success 'fsck detects truncated loose object' '
@@ -887,10 +887,10 @@ test_expect_success 'fsck detects truncated loose object' '
 
        # check both regular and streaming code paths
        test_must_fail git fsck 2>out &&
-       test_i18ngrep corrupt.*$blob out &&
+       test_grep corrupt.*$blob out &&
 
        test_must_fail git -c core.bigfilethreshold=128 fsck 2>out &&
-       test_i18ngrep corrupt.*$blob out
+       test_grep corrupt.*$blob out
 '
 
 # for each of type, we have one version which is referenced by another object
@@ -979,7 +979,7 @@ test_expect_success 'detect corrupt index file in fsck' '
        test_when_finished "mv .git/index.backup .git/index" &&
        corrupt_index_checksum &&
        test_must_fail git fsck --cache 2>errors &&
-       test_i18ngrep "bad index file" errors
+       test_grep "bad index file" errors
 '
 
 test_expect_success 'fsck error and recovery on invalid object type' '
index 18688cae17d57e8174f4d1d61eeb2e2ed341eac6..ef40511d8972924fed8abc1e8cb29f9bcf0cda77 100755 (executable)
@@ -107,16 +107,16 @@ test_expect_success 'correct relative file objects (6)' '
 
 test_expect_success 'incorrect revision id' '
        test_must_fail git rev-parse foobar:file.txt 2>error &&
-       test_i18ngrep "invalid object name .foobar." error &&
+       test_grep "invalid object name .foobar." error &&
        test_must_fail git rev-parse foobar 2>error &&
-       test_i18ngrep "unknown revision or path not in the working tree." error
+       test_grep "unknown revision or path not in the working tree." error
 '
 
 test_expect_success 'incorrect file in sha1:path' '
        test_must_fail git rev-parse HEAD:nothing.txt 2>error &&
-       test_i18ngrep "path .nothing.txt. does not exist in .HEAD." error &&
+       test_grep "path .nothing.txt. does not exist in .HEAD." error &&
        test_must_fail git rev-parse HEAD:index-only.txt 2>error &&
-       test_i18ngrep "path .index-only.txt. exists on disk, but not in .HEAD." error &&
+       test_grep "path .index-only.txt. exists on disk, but not in .HEAD." error &&
        (cd subdir &&
         test_must_fail git rev-parse HEAD:file2.txt 2>error &&
         test_did_you_mean HEAD subdir/ file2.txt exists )
@@ -124,9 +124,9 @@ test_expect_success 'incorrect file in sha1:path' '
 
 test_expect_success 'incorrect file in :path and :N:path' '
        test_must_fail git rev-parse :nothing.txt 2>error &&
-       test_i18ngrep "path .nothing.txt. does not exist (neither on disk nor in the index)" error &&
+       test_grep "path .nothing.txt. does not exist (neither on disk nor in the index)" error &&
        test_must_fail git rev-parse :1:nothing.txt 2>error &&
-       test_i18ngrep "path .nothing.txt. does not exist (neither on disk nor in the index)" error &&
+       test_grep "path .nothing.txt. does not exist (neither on disk nor in the index)" error &&
        test_must_fail git rev-parse :1:file.txt 2>error &&
        test_did_you_mean ":0" "" file.txt "is in the index" "at stage 1" &&
        (cd subdir &&
@@ -137,42 +137,42 @@ test_expect_success 'incorrect file in :path and :N:path' '
         test_must_fail git rev-parse :2:file2.txt 2>error &&
         test_did_you_mean :0 subdir/ file2.txt "is in the index") &&
        test_must_fail git rev-parse :disk-only.txt 2>error &&
-       test_i18ngrep "path .disk-only.txt. exists on disk, but not in the index" error
+       test_grep "path .disk-only.txt. exists on disk, but not in the index" error
 '
 
 test_expect_success 'invalid @{n} reference' '
        test_must_fail git rev-parse main@{99999} >output 2>error &&
        test_must_be_empty output &&
-       test_i18ngrep "log for [^ ]* only has [0-9][0-9]* entries" error  &&
+       test_grep "log for [^ ]* only has [0-9][0-9]* entries" error  &&
        test_must_fail git rev-parse --verify main@{99999} >output 2>error &&
        test_must_be_empty output &&
-       test_i18ngrep "log for [^ ]* only has [0-9][0-9]* entries" error
+       test_grep "log for [^ ]* only has [0-9][0-9]* entries" error
 '
 
 test_expect_success 'relative path not found' '
        (
                cd subdir &&
                test_must_fail git rev-parse HEAD:./nonexistent.txt 2>error &&
-               test_i18ngrep subdir/nonexistent.txt error
+               test_grep subdir/nonexistent.txt error
        )
 '
 
 test_expect_success 'relative path outside worktree' '
        test_must_fail git rev-parse HEAD:../file.txt >output 2>error &&
        test_must_be_empty output &&
-       test_i18ngrep "outside repository" error
+       test_grep "outside repository" error
 '
 
 test_expect_success 'relative path when cwd is outside worktree' '
        test_must_fail git --git-dir=.git --work-tree=subdir rev-parse HEAD:./file.txt >output 2>error &&
        test_must_be_empty output &&
-       test_i18ngrep "relative path syntax can.t be used outside working tree" error
+       test_grep "relative path syntax can.t be used outside working tree" error
 '
 
 test_expect_success '<commit>:file correctly diagnosed after a pathname' '
        test_must_fail git rev-parse file.txt HEAD:file.txt 1>actual 2>error &&
-       test_i18ngrep ! "exists on disk" error &&
-       test_i18ngrep "no such path in the working tree" error &&
+       test_grep ! "exists on disk" error &&
+       test_grep "no such path in the working tree" error &&
        cat >expect <<-\EOF &&
        file.txt
        HEAD:file.txt
@@ -214,13 +214,13 @@ test_expect_success 'dotdot does not peel endpoints' '
 
 test_expect_success 'arg before dashdash must be a revision (missing)' '
        test_must_fail git rev-parse foobar -- 2>stderr &&
-       test_i18ngrep "bad revision" stderr
+       test_grep "bad revision" stderr
 '
 
 test_expect_success 'arg before dashdash must be a revision (file)' '
        >foobar &&
        test_must_fail git rev-parse foobar -- 2>stderr &&
-       test_i18ngrep "bad revision" stderr
+       test_grep "bad revision" stderr
 '
 
 test_expect_success 'arg before dashdash must be a revision (ambiguous)' '
@@ -269,7 +269,7 @@ test_expect_success 'arg after dashdash not interpreted as option' '
 
 test_expect_success 'arg after end-of-options not interpreted as option' '
        test_must_fail git rev-parse --end-of-options --not-real -- 2>err &&
-       test_i18ngrep bad.revision.*--not-real err
+       test_grep bad.revision.*--not-real err
 '
 
 test_expect_success 'end-of-options still allows --' '
index 98cefe3b7039fe726148e47fdf81b1f9fb454e15..70f1e0a998e103704373e2cc4ffd21e09c7c64b0 100755 (executable)
@@ -129,7 +129,7 @@ test_expect_success 'blob and tree' '
 
 test_expect_success 'warn ambiguity when no candidate matches type hint' '
        test_must_fail git rev-parse --verify 000000000^{commit} 2>actual &&
-       test_i18ngrep "short object ID 000000000 is ambiguous" actual
+       test_grep "short object ID 000000000 is ambiguous" actual
 '
 
 test_expect_success 'disambiguate tree-ish' '
@@ -470,10 +470,10 @@ test_expect_success 'cat-file --batch and --batch-check show ambiguous' '
        echo "0000 ambiguous" >expect &&
        echo 0000 | git cat-file --batch-check >actual 2>err &&
        test_cmp expect actual &&
-       test_i18ngrep hint: err &&
+       test_grep hint: err &&
        echo 0000 | git cat-file --batch >actual 2>err &&
        test_cmp expect actual &&
-       test_i18ngrep hint: err
+       test_grep hint: err
 '
 
 test_done
index b16d69ca4ae0e8b61ce00a085273d8ad6f40f104..4c0fd856b34a559001ea44157644355884afe289 100755 (executable)
@@ -93,7 +93,7 @@ test_expect_success 'checkout all stages of unknown path' '
        rm -f path* .merge_* actual &&
        test_must_fail git checkout-index --stage=all --temp \
                -- does-not-exist 2>stderr &&
-       test_i18ngrep not.in.the.cache stderr
+       test_grep not.in.the.cache stderr
 '
 
 test_expect_success 'checkout all stages/one file to nothing' '
index 5d119871d416cd4e79b3bff7c56aeac729b276e6..570ba38580d99513fe12a2c6ed1e1a4c6951e0e2 100755 (executable)
@@ -8,7 +8,7 @@ TEST_PASSES_SANITIZE_LEAK=true
 
 test_expect_success 'checkout-index --gobbledegook' '
        test_expect_code 129 git checkout-index --gobbledegook 2>err &&
-       test_i18ngrep "[Uu]sage" err
+       test_grep "[Uu]sage" err
 '
 
 test_expect_success 'checkout-index -h in broken repository' '
@@ -19,18 +19,18 @@ test_expect_success 'checkout-index -h in broken repository' '
                >.git/index &&
                test_expect_code 129 git checkout-index -h >usage 2>&1
        ) &&
-       test_i18ngrep "[Uu]sage" broken/usage
+       test_grep "[Uu]sage" broken/usage
 '
 
 test_expect_success 'checkout-index reports errors (cmdline)' '
        test_must_fail git checkout-index -- does-not-exist 2>stderr &&
-       test_i18ngrep not.in.the.cache stderr
+       test_grep not.in.the.cache stderr
 '
 
 test_expect_success 'checkout-index reports errors (stdin)' '
        echo does-not-exist |
        test_must_fail git checkout-index --stdin 2>stderr &&
-       test_i18ngrep not.in.the.cache stderr
+       test_grep not.in.the.cache stderr
 '
 for mode in 'case' 'utf-8'
 do
@@ -88,8 +88,8 @@ test_expect_success 'checkout-index --temp correctly reports error on missing bl
        git update-index --index-info <objs &&
 
        test_must_fail git checkout-index --temp symlink file 2>stderr &&
-       test_i18ngrep "unable to read sha1 file of file ($missing_blob)" stderr &&
-       test_i18ngrep "unable to read sha1 file of symlink ($missing_blob)" stderr
+       test_grep "unable to read sha1 file of file ($missing_blob)" stderr &&
+       test_grep "unable to read sha1 file of symlink ($missing_blob)" stderr
 '
 
 test_expect_success 'checkout-index --temp correctly reports error for submodules' '
@@ -98,7 +98,7 @@ test_expect_success 'checkout-index --temp correctly reports error for submodule
        git submodule add ./sub &&
        git commit -m sub &&
        test_must_fail git checkout-index --temp sub 2>stderr &&
-       test_i18ngrep "cannot create temporary submodule sub" stderr
+       test_grep "cannot create temporary submodule sub" stderr
 '
 
 test_done
index 9d4b37526a326396fc334580350ff3cef3102b1e..82c3bfeac1ad9b96eb2adb9ae835fb2032222bd5 100755 (executable)
@@ -62,8 +62,8 @@ test_expect_success 'disambiguate checking out from a tree-ish' '
 
 test_expect_success 'accurate error message with more than one ref' '
        test_must_fail git checkout HEAD main -- 2>actual &&
-       test_i18ngrep 2 actual &&
-       test_i18ngrep "one reference expected, 2 given" actual
+       test_grep 2 actual &&
+       test_grep "one reference expected, 2 given" actual
 '
 
 test_done
index 8581ad3437907862e022e1bea8339182d68ef873..43551cc1481c3813c3aae0b291bac2b1a17b63d7 100755 (executable)
@@ -278,12 +278,12 @@ test_expect_success 'checkout -b to a new branch preserves mergeable changes des
 
 test_expect_success 'checkout -b rejects an invalid start point' '
        test_must_fail git checkout -b branch4 file1 2>err &&
-       test_i18ngrep "is not a commit" err
+       test_grep "is not a commit" err
 '
 
 test_expect_success 'checkout -b rejects an extra path argument' '
        test_must_fail git checkout -b branch5 branch1 file1 2>err &&
-       test_i18ngrep "Cannot update paths and switch to branch" err
+       test_grep "Cannot update paths and switch to branch" err
 '
 
 test_done
index 95405886640a4fb304a565ccc4a166f450c0f5c8..c67261e2b68a9d330dc14c92783a485b0f605601 100755 (executable)
@@ -32,8 +32,8 @@ test_expect_success 'checkout chooses branch over tag' '
 '
 
 test_expect_success 'checkout reports switch to branch' '
-       test_i18ngrep "Switched to branch" stderr &&
-       test_i18ngrep ! "^HEAD is now at" stderr
+       test_grep "Switched to branch" stderr &&
+       test_grep ! "^HEAD is now at" stderr
 '
 
 test_expect_success 'checkout vague ref succeeds' '
@@ -54,8 +54,8 @@ test_expect_success VAGUENESS_SUCCESS 'checkout chooses branch over tag' '
 '
 
 test_expect_success VAGUENESS_SUCCESS 'checkout reports switch to branch' '
-       test_i18ngrep "Switched to branch" stderr &&
-       test_i18ngrep ! "^HEAD is now at" stderr
+       test_grep "Switched to branch" stderr &&
+       test_grep ! "^HEAD is now at" stderr
 '
 
 test_done
index 2eab6474f8d0f4b3116455c95cb71cd69f78a311..8202ef8c74f639fb53a16b943fb5923ecd4e420e 100755 (executable)
@@ -17,12 +17,12 @@ check_not_detached () {
 
 PREV_HEAD_DESC='Previous HEAD position was'
 check_orphan_warning() {
-       test_i18ngrep "you are leaving $2 behind" "$1" &&
-       test_i18ngrep ! "$PREV_HEAD_DESC" "$1"
+       test_grep "you are leaving $2 behind" "$1" &&
+       test_grep ! "$PREV_HEAD_DESC" "$1"
 }
 check_no_orphan_warning() {
-       test_i18ngrep ! "you are leaving .* commit.*behind" "$1" &&
-       test_i18ngrep "$PREV_HEAD_DESC" "$1"
+       test_grep ! "you are leaving .* commit.*behind" "$1" &&
+       test_grep "$PREV_HEAD_DESC" "$1"
 }
 
 reset () {
index 74049a9812ba4ff80bce1b235d636782800a5a13..a97416ce65474df17e4133c8e14b23736ab7fc8d 100755 (executable)
@@ -93,7 +93,7 @@ test_expect_success 'when arg matches multiple remotes, do not fallback to inter
 
        test_must_fail git checkout ambiguous_branch_and_file 2>err &&
 
-       test_i18ngrep "matched multiple (2) remote tracking branches" err &&
+       test_grep "matched multiple (2) remote tracking branches" err &&
 
        # file must not be altered
        test_cmp expect ambiguous_branch_and_file
@@ -105,12 +105,12 @@ test_expect_success 'checkout of branch from multiple remotes fails with advice'
        test_must_fail git checkout foo 2>stderr &&
        test_branch main &&
        status_uno_is_clean &&
-       test_i18ngrep "^hint: " stderr &&
+       test_grep "^hint: " stderr &&
        test_must_fail git -c advice.checkoutAmbiguousRemoteBranchName=false \
                checkout foo 2>stderr &&
        test_branch main &&
        status_uno_is_clean &&
-       test_i18ngrep ! "^hint: " stderr
+       test_grep ! "^hint: " stderr
 '
 
 test_expect_success PERL 'checkout -p with multiple remotes does not print advice' '
@@ -118,7 +118,7 @@ test_expect_success PERL 'checkout -p with multiple remotes does not print advic
        test_might_fail git branch -D foo &&
 
        git checkout -p foo 2>stderr &&
-       test_i18ngrep ! "^hint: " stderr &&
+       test_grep ! "^hint: " stderr &&
        status_uno_is_clean
 '
 
index 3832c3de8135524b4294b7ece693194b3bf506c1..246609d54d050e5fce76730318123b30f322b75a 100755 (executable)
@@ -26,7 +26,7 @@ test_expect_success 'checkout --no-overlay removing last file from directory' '
 
 test_expect_success 'checkout -p --overlay is disallowed' '
        test_must_fail git checkout -p --overlay HEAD 2>actual &&
-       test_i18ngrep "fatal: options .-p. and .--overlay. cannot be used together" actual
+       test_grep "fatal: options .-p. and .--overlay. cannot be used together" actual
 '
 
 test_expect_success '--no-overlay --theirs with D/F conflict deletes file' '
index 9c651aefbca44283f3ac5f018557d97fb615106c..acd55217a6231c35d17f4fbefe2ea27e30d05501 100755 (executable)
@@ -149,16 +149,16 @@ test_expect_success 'error conditions' '
        echo fileA.t >list &&
 
        test_must_fail git checkout --pathspec-from-file=list --detach 2>err &&
-       test_i18ngrep -e "options .--pathspec-from-file. and .--detach. cannot be used together" err &&
+       test_grep -e "options .--pathspec-from-file. and .--detach. cannot be used together" err &&
 
        test_must_fail git checkout --pathspec-from-file=list --patch 2>err &&
-       test_i18ngrep -e "options .--pathspec-from-file. and .--patch. cannot be used together" err &&
+       test_grep -e "options .--pathspec-from-file. and .--patch. cannot be used together" err &&
 
        test_must_fail git checkout --pathspec-from-file=list -- fileA.t 2>err &&
-       test_i18ngrep -e ".--pathspec-from-file. and pathspec arguments cannot be used together" err &&
+       test_grep -e ".--pathspec-from-file. and pathspec arguments cannot be used together" err &&
 
        test_must_fail git checkout --pathspec-file-nul 2>err &&
-       test_i18ngrep -e "the option .--pathspec-file-nul. requires .--pathspec-from-file." err
+       test_grep -e "the option .--pathspec-file-nul. requires .--pathspec-from-file." err
 '
 
 test_done
index a8bbc60954f5f0d41815582a32d85f70e4dc2b8c..98f16c72399806d2e0a5cdc0580072dcc8c65dae 100755 (executable)
@@ -22,7 +22,7 @@ test_expect_success 'checkout --track -b creates a new tracking branch' '
 
 test_expect_success 'checkout --track -b rejects an extra path argument' '
        test_must_fail git checkout --track -b branch2 main one.t 2>err &&
-       test_i18ngrep "cannot be used with updating paths" err
+       test_grep "cannot be used with updating paths" err
 '
 
 test_expect_success 'checkout --track -b overrides autoSetupMerge=inherit' '
index 2d8c70b03a50e9ca082f7343d78dbcf6ad456159..102023ed577c9b7637eb2b07517118bf91b114ac 100755 (executable)
@@ -191,7 +191,7 @@ test_expect_success 'rerere forget (add-add conflict)' '
        git commit -m "add differently" &&
        test_must_fail git merge fifth &&
        git rerere forget add-differently 2>actual &&
-       test_i18ngrep "no remembered" actual
+       test_grep "no remembered" actual
 '
 
 test_expect_success 'resolve-undo keeps blobs from gc' '
index c22669b39f938d901555e2c9a43d8d1f07de6da8..8198a1e5789cc963c32ecb028209a7a773144fd5 100755 (executable)
@@ -152,16 +152,16 @@ test_expect_success 'error conditions' '
        >empty_list &&
 
        test_must_fail git restore --pathspec-from-file=list --patch --source=HEAD^1 2>err &&
-       test_i18ngrep -e "options .--pathspec-from-file. and .--patch. cannot be used together" err &&
+       test_grep -e "options .--pathspec-from-file. and .--patch. cannot be used together" err &&
 
        test_must_fail git restore --pathspec-from-file=list --source=HEAD^1 -- fileA.t 2>err &&
-       test_i18ngrep -e ".--pathspec-from-file. and pathspec arguments cannot be used together" err &&
+       test_grep -e ".--pathspec-from-file. and pathspec arguments cannot be used together" err &&
 
        test_must_fail git restore --pathspec-file-nul --source=HEAD^1 2>err &&
-       test_i18ngrep -e "the option .--pathspec-file-nul. requires .--pathspec-from-file." err &&
+       test_grep -e "the option .--pathspec-file-nul. requires .--pathspec-from-file." err &&
 
        test_must_fail git restore --pathspec-from-file=empty_list --source=HEAD^1 2>err &&
-       test_i18ngrep -e "you must specify path(s) to restore" err
+       test_grep -e "you must specify path(s) to restore" err
 '
 
 test_expect_success 'wildcard pathspec matches file in subdirectory' '
index d943ddf47e08f98b20a1f3365dca594815e06ea5..95c004dc5c5462b8b18cf348e5b1c44115a73042 100755 (executable)
@@ -22,7 +22,7 @@ test_expect_success 'do not switch branches with dirty file' '
        echo dirt >file &&
        git update-index --assume-unchanged file &&
        test_must_fail git checkout - 2>err &&
-       test_i18ngrep overwritten err
+       test_grep overwritten err
 '
 
 test_done
index 89b285fa3a608f917a269c56ee2f44fa51f5d01f..3d7ca5792e7a35fb250cfdbbb4c2573d01c487b0 100755 (executable)
@@ -14,7 +14,7 @@ test_expect_success 'update-index --nonsense fails' '
 
 test_expect_success 'update-index --nonsense dumps usage' '
        test_expect_code 129 git update-index --nonsense 2>err &&
-       test_i18ngrep "[Uu]sage: git update-index" err
+       test_grep "[Uu]sage: git update-index" err
 '
 
 test_expect_success 'update-index -h with corrupt index' '
@@ -25,7 +25,7 @@ test_expect_success 'update-index -h with corrupt index' '
                >.git/index &&
                test_expect_code 129 git update-index -h >usage 2>&1
        ) &&
-       test_i18ngrep "[Uu]sage: git update-index" broken/usage
+       test_grep "[Uu]sage: git update-index" broken/usage
 '
 
 test_expect_success '--cacheinfo complains of missing arguments' '
index ebf58db2d1827209464c94ac621f16f1693367d5..8fa44a92a277f414018d3f71731f791ec4b4f490 100755 (executable)
@@ -173,7 +173,7 @@ test_expect_success 'rename detection finds the right names' '
                git add -N third &&
 
                git status | grep -v "^?" >actual.1 &&
-               test_i18ngrep "renamed: *first -> third" actual.1 &&
+               test_grep "renamed: *first -> third" actual.1 &&
 
                git status --porcelain | grep -v "^?" >actual.2 &&
                cat >expected.2 <<-\EOF &&
@@ -213,8 +213,8 @@ test_expect_success 'double rename detection in status' '
                git add -N third &&
 
                git status | grep -v "^?" >actual.1 &&
-               test_i18ngrep "renamed: *first -> second" actual.1 &&
-               test_i18ngrep "renamed: *second -> third" actual.1 &&
+               test_grep "renamed: *first -> second" actual.1 &&
+               test_grep "renamed: *second -> third" actual.1 &&
 
                git status --porcelain | grep -v "^?" >actual.2 &&
                cat >expected.2 <<-\EOF &&
index 89424abccd1c5663b8c2a8a6c3b023831887f330..b7cf1e492c1073ee3fb4705bf8755d8b49c3d6d0 100755 (executable)
@@ -36,7 +36,7 @@ do
        '
 
        test_expect_success "complaints for ignored $i output" '
-               test_i18ngrep -e "Use -f if" err
+               test_grep -e "Use -f if" err
        '
 
        test_expect_success "complaints for ignored $i with unignored file" '
@@ -46,7 +46,7 @@ do
                test_must_be_empty out
        '
        test_expect_success "complaints for ignored $i with unignored file output" '
-               test_i18ngrep -e "Use -f if" err
+               test_grep -e "Use -f if" err
        '
 done
 
@@ -65,7 +65,7 @@ do
        test_expect_success "complaints for ignored $i in dir output" '
                (
                        cd dir &&
-                       test_i18ngrep -e "Use -f if" err
+                       test_grep -e "Use -f if" err
                )
        '
 done
@@ -85,7 +85,7 @@ do
        test_expect_success "complaints for ignored $i in sub output" '
                (
                        cd sub &&
-                       test_i18ngrep -e "Use -f if" err
+                       test_grep -e "Use -f if" err
                )
        '
 done
index 568a47ec4268778052534d93a168361744215efa..71aa9bcd620f8a504fe628a2d7332d8b47fd4701 100755 (executable)
@@ -47,7 +47,7 @@ test_expect_success SANITY 'prune directories with unreadable gitdir' '
        : >.git/worktrees/def/gitdir &&
        chmod u-r .git/worktrees/def/gitdir &&
        git worktree prune --verbose 2>actual &&
-       test_i18ngrep "Removing worktrees/def: unable to read gitdir file" actual &&
+       test_grep "Removing worktrees/def: unable to read gitdir file" actual &&
        ! test -d .git/worktrees/def &&
        ! test -d .git/worktrees
 '
@@ -57,7 +57,7 @@ test_expect_success 'prune directories with invalid gitdir' '
        : >.git/worktrees/def/def &&
        : >.git/worktrees/def/gitdir &&
        git worktree prune --verbose 2>actual &&
-       test_i18ngrep "Removing worktrees/def: invalid gitdir file" actual &&
+       test_grep "Removing worktrees/def: invalid gitdir file" actual &&
        ! test -d .git/worktrees/def &&
        ! test -d .git/worktrees
 '
@@ -67,7 +67,7 @@ test_expect_success 'prune directories with gitdir pointing to nowhere' '
        : >.git/worktrees/def/def &&
        echo "$(pwd)"/nowhere >.git/worktrees/def/gitdir &&
        git worktree prune --verbose 2>actual &&
-       test_i18ngrep "Removing worktrees/def: gitdir file points to non-existent location" actual &&
+       test_grep "Removing worktrees/def: gitdir file points to non-existent location" actual &&
        ! test -d .git/worktrees/def &&
        ! test -d .git/worktrees
 '
@@ -103,7 +103,7 @@ test_expect_success 'prune duplicate (linked/linked)' '
        sed "s/w2/w1/" .git/worktrees/w2/gitdir >.git/worktrees/w2/gitdir.new &&
        mv .git/worktrees/w2/gitdir.new .git/worktrees/w2/gitdir &&
        git worktree prune --verbose 2>actual &&
-       test_i18ngrep "duplicate entry" actual &&
+       test_grep "duplicate entry" actual &&
        test -d .git/worktrees/w1 &&
        ! test -d .git/worktrees/w2
 '
@@ -116,7 +116,7 @@ test_expect_success 'prune duplicate (main/linked)' '
        rm -fr wt &&
        mv repo wt &&
        git -C wt worktree prune --verbose 2>actual &&
-       test_i18ngrep "duplicate entry" actual &&
+       test_grep "duplicate entry" actual &&
        ! test -d .git/worktrees/wt
 '
 
index 9ad9be0c2089335b67fcb08f00ade4b46ab5637c..33ea9cb21ba07c9563530b54da06753eaa993fe2 100755 (executable)
@@ -143,7 +143,7 @@ test_expect_success '"list" all worktrees --porcelain with prunable' '
        rm -rf prunable &&
        git worktree list --porcelain >out &&
        sed -n "/^worktree .*\/prunable$/,/^$/p" <out >only_prunable &&
-       test_i18ngrep "^prunable gitdir file points to non-existent location$" only_prunable
+       test_grep "^prunable gitdir file points to non-existent location$" only_prunable
 '
 
 test_expect_success '"list" all worktrees with prunable consistent with "prune"' '
@@ -155,8 +155,8 @@ test_expect_success '"list" all worktrees with prunable consistent with "prune"'
        grep "/prunable  *[0-9a-f].* prunable$" out &&
        ! grep "/unprunable  *[0-9a-f].* unprunable$" out &&
        git worktree prune --verbose 2>out &&
-       test_i18ngrep "^Removing worktrees/prunable" out &&
-       test_i18ngrep ! "^Removing worktrees/unprunable" out
+       test_grep "^Removing worktrees/prunable" out &&
+       test_grep ! "^Removing worktrees/unprunable" out
 '
 
 test_expect_success '"list" --verbose and --porcelain mutually exclusive' '
index 230a55e99af85f9f0b60d13df1b15372012e0f89..901342ea09b51a8e832f1109fbb737df84283aa2 100755 (executable)
@@ -202,7 +202,7 @@ test_expect_success 'proper error when worktree not found' '
        for i in noodle noodle/bork
        do
                test_must_fail git worktree lock $i 2>err &&
-               test_i18ngrep "not a working tree" err || return 1
+               test_grep "not a working tree" err || return 1
        done
 '
 
index 8970780efccd85f54c1e1bd830f841d34ce90ce8..edbf502ec57bb7e778b96ffc0ef6798b4f2f3233 100755 (executable)
@@ -25,7 +25,7 @@ test_expect_success 'worktree path not directory' '
        >notdir &&
        test_must_fail git worktree repair >out 2>err &&
        test_must_be_empty out &&
-       test_i18ngrep "not a directory" err
+       test_grep "not a directory" err
 '
 
 test_expect_success "don't clobber .git repo" '
@@ -35,7 +35,7 @@ test_expect_success "don't clobber .git repo" '
        test_create_repo repo &&
        test_must_fail git worktree repair >out 2>err &&
        test_must_be_empty out &&
-       test_i18ngrep ".git is not a file" err
+       test_grep ".git is not a file" err
 '
 
 test_corrupt_gitfile () {
@@ -47,7 +47,7 @@ test_corrupt_gitfile () {
        git -C corrupt rev-parse --absolute-git-dir >expect &&
        eval "$butcher" &&
        git -C "$repairdir" worktree repair 2>err &&
-       test_i18ngrep "$problem" err &&
+       test_grep "$problem" err &&
        git -C corrupt rev-parse --absolute-git-dir >actual &&
        test_cmp expect actual
 }
@@ -93,7 +93,7 @@ test_expect_success 'repair .git file from bare.git' '
 test_expect_success 'invalid worktree path' '
        test_must_fail git worktree repair /notvalid >out 2>err &&
        test_must_be_empty out &&
-       test_i18ngrep "not a valid path" err
+       test_grep "not a valid path" err
 '
 
 test_expect_success 'repo not found; .git not file' '
@@ -101,7 +101,7 @@ test_expect_success 'repo not found; .git not file' '
        test_create_repo not-a-worktree &&
        test_must_fail git worktree repair not-a-worktree >out 2>err &&
        test_must_be_empty out &&
-       test_i18ngrep ".git is not a file" err
+       test_grep ".git is not a file" err
 '
 
 test_expect_success 'repo not found; .git not referencing repo' '
@@ -111,7 +111,7 @@ test_expect_success 'repo not found; .git not referencing repo' '
        mv side/.newgit side/.git &&
        mkdir not-a-repo &&
        test_must_fail git worktree repair side 2>err &&
-       test_i18ngrep ".git file does not reference a repository" err
+       test_grep ".git file does not reference a repository" err
 '
 
 test_expect_success 'repo not found; .git file broken' '
@@ -121,7 +121,7 @@ test_expect_success 'repo not found; .git file broken' '
        mv orig moved &&
        test_must_fail git worktree repair moved >out 2>err &&
        test_must_be_empty out &&
-       test_i18ngrep ".git file broken" err
+       test_grep ".git file broken" err
 '
 
 test_expect_success 'repair broken gitdir' '
@@ -132,7 +132,7 @@ test_expect_success 'repair broken gitdir' '
        mv orig moved &&
        git worktree repair moved 2>err &&
        test_cmp expect .git/worktrees/orig/gitdir &&
-       test_i18ngrep "gitdir unreadable" err
+       test_grep "gitdir unreadable" err
 '
 
 test_expect_success 'repair incorrect gitdir' '
@@ -142,7 +142,7 @@ test_expect_success 'repair incorrect gitdir' '
        mv orig moved &&
        git worktree repair moved 2>err &&
        test_cmp expect .git/worktrees/orig/gitdir &&
-       test_i18ngrep "gitdir incorrect" err
+       test_grep "gitdir incorrect" err
 '
 
 test_expect_success 'repair gitdir (implicit) from linked worktree' '
@@ -152,7 +152,7 @@ test_expect_success 'repair gitdir (implicit) from linked worktree' '
        mv orig moved &&
        git -C moved worktree repair 2>err &&
        test_cmp expect .git/worktrees/orig/gitdir &&
-       test_i18ngrep "gitdir incorrect" err
+       test_grep "gitdir incorrect" err
 '
 
 test_expect_success 'unable to repair gitdir (implicit) from main worktree' '
@@ -177,8 +177,8 @@ test_expect_success 'repair multiple gitdir files' '
        git worktree repair moved1 moved2 2>err &&
        test_cmp expect1 .git/worktrees/orig1/gitdir &&
        test_cmp expect2 .git/worktrees/orig2/gitdir &&
-       test_i18ngrep "gitdir incorrect:.*orig1/gitdir$" err &&
-       test_i18ngrep "gitdir incorrect:.*orig2/gitdir$" err
+       test_grep "gitdir incorrect:.*orig1/gitdir$" err &&
+       test_grep "gitdir incorrect:.*orig2/gitdir$" err
 '
 
 test_expect_success 'repair moved main and linked worktrees' '
index a16e25c79bdde748cbb9c1d5419960e0e5f8f3f5..12e41a7b40e0ab73efa1fc30354e80996c3a91a4 100755 (executable)
@@ -21,7 +21,7 @@ test_expect_success 'ls-files with nonexistent path' '
 
 test_expect_success 'ls-files with nonsense option' '
        test_expect_code 129 git ls-files --nonsense 2>actual &&
-       test_i18ngrep "[Uu]sage: git ls-files" actual
+       test_grep "[Uu]sage: git ls-files" actual
 '
 
 test_expect_success 'ls-files -h in corrupt repository' '
@@ -32,7 +32,7 @@ test_expect_success 'ls-files -h in corrupt repository' '
                >.git/index &&
                test_expect_code 129 git ls-files -h >usage 2>&1
        ) &&
-       test_i18ngrep "[Uu]sage: git ls-files " broken/usage
+       test_grep "[Uu]sage: git ls-files " broken/usage
 '
 
 test_expect_success SYMLINKS 'ls-files with absolute paths to symlinks' '
index 7308a3d4e25a8be915c6e2157b31c21a3585bd0c..61771eec830c0688587588ee0a334282effdb1bb 100755 (executable)
@@ -296,7 +296,7 @@ test_expect_success '--recurse-submodules and relative paths' '
 
 test_expect_success '--recurse-submodules does not support --error-unmatch' '
        test_must_fail git ls-files --recurse-submodules --error-unmatch 2>actual &&
-       test_i18ngrep "does not support --error-unmatch" actual
+       test_grep "does not support --error-unmatch" actual
 '
 
 test_expect_success '--recurse-submodules parses submodule repo config' '
@@ -335,7 +335,7 @@ test_expect_success '--recurse-submodules submodules ignore super project worktr
 test_incompatible_with_recurse_submodules () {
        test_expect_success "--recurse-submodules and $1 are incompatible" "
                test_must_fail git ls-files --recurse-submodules $1 2>actual &&
-               test_i18ngrep 'unsupported mode' actual
+               test_grep 'unsupported mode' actual
        "
 }
 
index daf1666df7adb9594c50445764440ad339f43645..649d9dcba59d6d4de42460e78e2a337bb98d4f53 100755 (executable)
@@ -36,7 +36,7 @@ test_expect_success 'branch -h in broken repository' '
                >.git/refs/heads/main &&
                test_expect_code 129 git branch -h >usage 2>&1
        ) &&
-       test_i18ngrep "[Uu]sage" broken/usage
+       test_grep "[Uu]sage" broken/usage
 '
 
 test_expect_success 'git branch abc should create a branch' '
@@ -103,7 +103,7 @@ test_expect_success 'git branch l should work after branch l/m has been deleted'
 
 test_expect_success 'git branch -m dumps usage' '
        test_expect_code 128 git branch -m 2>err &&
-       test_i18ngrep "branch name required" err
+       test_grep "branch name required" err
 '
 
 test_expect_success 'git branch -m m broken_symref should work' '
@@ -581,12 +581,12 @@ EOF
 
 test_expect_success 'git branch -c dumps usage' '
        test_expect_code 128 git branch -c 2>err &&
-       test_i18ngrep "branch name required" err
+       test_grep "branch name required" err
 '
 
 test_expect_success 'git branch --copy dumps usage' '
        test_expect_code 128 git branch --copy 2>err &&
-       test_i18ngrep "branch name required" err
+       test_grep "branch name required" err
 '
 
 test_expect_success 'git branch -c d e should work' '
@@ -1025,7 +1025,7 @@ test_expect_success '--set-upstream-to fails on a missing dst branch' '
 
 test_expect_success '--set-upstream-to fails on a missing src branch' '
        test_must_fail git branch --set-upstream-to does-not-exist main 2>err &&
-       test_i18ngrep "the requested upstream branch '"'"'does-not-exist'"'"' does not exist" err
+       test_grep "the requested upstream branch '"'"'does-not-exist'"'"' does not exist" err
 '
 
 test_expect_success '--set-upstream-to fails on a non-ref' '
@@ -1039,7 +1039,7 @@ test_expect_success '--set-upstream-to fails on locked config' '
        >.git/config.lock &&
        git branch locked &&
        test_must_fail git branch --set-upstream-to locked 2>err &&
-       test_i18ngrep "could not lock config file .git/config" err
+       test_grep "could not lock config file .git/config" err
 '
 
 test_expect_success 'use --set-upstream-to modify HEAD' '
@@ -1070,7 +1070,7 @@ test_expect_success '--unset-upstream should fail if config is locked' '
        git branch --set-upstream-to locked &&
        >.git/config.lock &&
        test_must_fail git branch --unset-upstream 2>err &&
-       test_i18ngrep "could not lock config file .git/config" err
+       test_grep "could not lock config file .git/config" err
 '
 
 test_expect_success 'test --unset-upstream on HEAD' '
@@ -1506,7 +1506,7 @@ test_expect_success '--list during rebase' '
        set_fake_editor &&
        git rebase -i HEAD~2 &&
        git branch --list >actual &&
-       test_i18ngrep "rebasing main" actual
+       test_grep "rebasing main" actual
 '
 
 test_expect_success '--list during rebase from detached HEAD' '
@@ -1518,7 +1518,7 @@ test_expect_success '--list during rebase from detached HEAD' '
        set_fake_editor &&
        git rebase -i HEAD~2 &&
        git branch --list >actual &&
-       test_i18ngrep "rebasing detached HEAD $oid" actual
+       test_grep "rebasing detached HEAD $oid" actual
 '
 
 test_expect_success 'tracking with unexpected .fetch refspec' '
index b17f388f56dfea819e70a04cf25000f0fb4b3658..235c68fb022c43f99dd838b36dac6f882ba655d2 100755 (executable)
@@ -253,7 +253,7 @@ test_expect_success 'error descriptions on orphan branch' '
        test_branch_op_in_wt() {
                test_orphan_error() {
                        test_must_fail git $* 2>actual &&
-                       test_i18ngrep "No commit on branch .orphan-branch. yet.$" actual
+                       test_grep "No commit on branch .orphan-branch. yet.$" actual
                } &&
                test_orphan_error -C wt branch $1 $2 &&                # implicit branch
                test_orphan_error -C wt branch $1 orphan-branch $2 &&  # explicit branch
index b5f4d6a653045dafa7c2317036196866f78b9ca5..cfeb8c84b06b320f3a8a1416e285bc69b5e0ddb2 100755 (executable)
@@ -195,7 +195,7 @@ test_expect_success 'A^! and A^-<n> (unmodified)' '
 
 test_expect_success 'A^{/..} is not mistaken for a range' '
        test_must_fail git range-diff topic^.. topic^{/..} -- 2>error &&
-       test_i18ngrep "not a commit range" error
+       test_grep "not a commit range" error
 '
 
 test_expect_success 'trivial reordering' '
@@ -537,7 +537,7 @@ do
                        main..unmodified >actual &&
                test_when_finished "rm 000?-*" &&
                test_line_count = 5 actual &&
-               test_i18ngrep "^Range-diff:$" 0000-* &&
+               test_grep "^Range-diff:$" 0000-* &&
                grep "= 1: .* s/5/A" 0000-* &&
                grep "= 2: .* s/4/A" 0000-* &&
                grep "= 3: .* s/11/B" 0000-* &&
@@ -549,7 +549,7 @@ test_expect_success 'format-patch --range-diff as commentary' '
        git format-patch --range-diff=HEAD~1 HEAD~1 >actual &&
        test_when_finished "rm 0001-*" &&
        test_line_count = 1 actual &&
-       test_i18ngrep "^Range-diff:$" 0001-* &&
+       test_grep "^Range-diff:$" 0001-* &&
        grep "> 1: .* new message" 0001-*
 '
 
@@ -557,7 +557,7 @@ test_expect_success 'format-patch --range-diff reroll-count with a non-integer'
        git format-patch --range-diff=HEAD~1 -v2.9 HEAD~1 >actual &&
        test_when_finished "rm v2.9-0001-*" &&
        test_line_count = 1 actual &&
-       test_i18ngrep "^Range-diff:$" v2.9-0001-* &&
+       test_grep "^Range-diff:$" v2.9-0001-* &&
        grep "> 1: .* new message" v2.9-0001-*
 '
 
@@ -565,7 +565,7 @@ test_expect_success 'format-patch --range-diff reroll-count with a integer' '
        git format-patch --range-diff=HEAD~1 -v2 HEAD~1 >actual &&
        test_when_finished "rm v2-0001-*" &&
        test_line_count = 1 actual &&
-       test_i18ngrep "^Range-diff ..* v1:$" v2-0001-* &&
+       test_grep "^Range-diff ..* v1:$" v2-0001-* &&
        grep "> 1: .* new message" v2-0001-*
 '
 
@@ -573,7 +573,7 @@ test_expect_success 'format-patch --range-diff with v0' '
        git format-patch --range-diff=HEAD~1 -v0 HEAD~1 >actual &&
        test_when_finished "rm v0-0001-*" &&
        test_line_count = 1 actual &&
-       test_i18ngrep "^Range-diff:$" v0-0001-* &&
+       test_grep "^Range-diff:$" v0-0001-* &&
        grep "> 1: .* new message" v0-0001-*
 '
 
@@ -670,7 +670,7 @@ test_expect_success 'format-patch --range-diff does not compare notes by default
                main..unmodified >actual &&
        test_when_finished "rm 000?-*" &&
        test_line_count = 5 actual &&
-       test_i18ngrep "^Range-diff:$" 0000-* &&
+       test_grep "^Range-diff:$" 0000-* &&
        grep "= 1: .* s/5/A" 0000-* &&
        grep "= 2: .* s/4/A" 0000-* &&
        grep "= 3: .* s/11/B" 0000-* &&
@@ -687,7 +687,7 @@ test_expect_success 'format-patch --range-diff with --no-notes' '
                main..unmodified >actual &&
        test_when_finished "rm 000?-*" &&
        test_line_count = 5 actual &&
-       test_i18ngrep "^Range-diff:$" 0000-* &&
+       test_grep "^Range-diff:$" 0000-* &&
        grep "= 1: .* s/5/A" 0000-* &&
        grep "= 2: .* s/4/A" 0000-* &&
        grep "= 3: .* s/11/B" 0000-* &&
@@ -704,7 +704,7 @@ test_expect_success 'format-patch --range-diff with --notes' '
                main..unmodified >actual &&
        test_when_finished "rm 000?-*" &&
        test_line_count = 5 actual &&
-       test_i18ngrep "^Range-diff:$" 0000-* &&
+       test_grep "^Range-diff:$" 0000-* &&
        grep "= 1: .* s/5/A" 0000-* &&
        grep "= 2: .* s/4/A" 0000-* &&
        grep "= 3: .* s/11/B" 0000-* &&
@@ -733,7 +733,7 @@ test_expect_success 'format-patch --range-diff with format.notes config' '
                main..unmodified >actual &&
        test_when_finished "rm 000?-*" &&
        test_line_count = 5 actual &&
-       test_i18ngrep "^Range-diff:$" 0000-* &&
+       test_grep "^Range-diff:$" 0000-* &&
        grep "= 1: .* s/5/A" 0000-* &&
        grep "= 2: .* s/4/A" 0000-* &&
        grep "= 3: .* s/11/B" 0000-* &&
@@ -764,7 +764,7 @@ test_expect_success 'format-patch --range-diff with multiple notes' '
                main..unmodified >actual &&
        test_when_finished "rm 000?-*" &&
        test_line_count = 5 actual &&
-       test_i18ngrep "^Range-diff:$" 0000-* &&
+       test_grep "^Range-diff:$" 0000-* &&
        grep "= 1: .* s/5/A" 0000-* &&
        grep "= 2: .* s/4/A" 0000-* &&
        grep "= 3: .* s/11/B" 0000-* &&
index 7326adb70f743c422d75386320febf2d8ecaab84..7f4e98db7db24363a451fa4b1ae8412b6e1277c3 100755 (executable)
@@ -227,7 +227,7 @@ test_expect_success 'notice d/f conflict with existing directory' '
 
 test_expect_success 'existing directory reports concrete ref' '
        test_must_fail git branch foo 2>stderr &&
-       test_i18ngrep refs/heads/foo/bar/baz stderr
+       test_grep refs/heads/foo/bar/baz stderr
 '
 
 test_expect_success 'notice d/f conflict with existing ref' '
index d734000d2fca6ab25568b392ea57a05678915344..cf23c06c098756abec968d689bcbf3e58541901b 100755 (executable)
@@ -1469,9 +1469,9 @@ test_expect_success 'GIT_NOTES_REWRITE_REF overrides config' '
 
 test_expect_success 'git notes copy diagnoses too many or too few arguments' '
        test_must_fail git notes copy 2>error &&
-       test_i18ngrep "too few arguments" error &&
+       test_grep "too few arguments" error &&
        test_must_fail git notes copy one two three 2>error &&
-       test_i18ngrep "too many arguments" error
+       test_grep "too many arguments" error
 '
 
 test_expect_success 'git notes get-ref expands refs/heads/main to refs/notes/refs/heads/main' '
index d3d72e25fe4b5ba05527d1378841978029f4c543..60d6ed2dc8438a22439d55432d5664ea2080b9f0 100755 (executable)
@@ -216,7 +216,7 @@ test_expect_success 'merge z into m (== y) with default ("manual") resolver => C
        git config core.notesRef refs/notes/m &&
        test_must_fail git notes merge z >output 2>&1 &&
        # Output should point to where to resolve conflicts
-       test_i18ngrep "\\.git/NOTES_MERGE_WORKTREE" output &&
+       test_grep "\\.git/NOTES_MERGE_WORKTREE" output &&
        # Inspect merge conflicts
        ls .git/NOTES_MERGE_WORKTREE >output_conflicts &&
        test_cmp expect_conflicts output_conflicts &&
@@ -263,7 +263,7 @@ test_expect_success 'cannot do merge w/conflicts when previous merge is unfinish
        test -d .git/NOTES_MERGE_WORKTREE &&
        test_must_fail git notes merge z >output 2>&1 &&
        # Output should indicate what is wrong
-       test_i18ngrep -q "\\.git/NOTES_MERGE_\\* exists" output
+       test_grep -q "\\.git/NOTES_MERGE_\\* exists" output
 '
 
 # Setup non-conflicting merge between x and new notes ref w
@@ -417,7 +417,7 @@ test_expect_success 'redo merge of z into m (== y) with default ("manual") resol
        git config core.notesRef refs/notes/m &&
        test_must_fail git notes merge z >output 2>&1 &&
        # Output should point to where to resolve conflicts
-       test_i18ngrep "\\.git/NOTES_MERGE_WORKTREE" output &&
+       test_grep "\\.git/NOTES_MERGE_WORKTREE" output &&
        # Inspect merge conflicts
        ls .git/NOTES_MERGE_WORKTREE >output_conflicts &&
        test_cmp expect_conflicts output_conflicts &&
@@ -449,7 +449,7 @@ git rev-parse refs/notes/z > pre_merge_z
 test_expect_success 'redo merge of z into m (== y) with default ("manual") resolver => Conflicting 3-way merge' '
        test_must_fail git notes merge z >output 2>&1 &&
        # Output should point to where to resolve conflicts
-       test_i18ngrep "\\.git/NOTES_MERGE_WORKTREE" output &&
+       test_grep "\\.git/NOTES_MERGE_WORKTREE" output &&
        # Inspect merge conflicts
        ls .git/NOTES_MERGE_WORKTREE >output_conflicts &&
        test_cmp expect_conflicts output_conflicts &&
@@ -528,7 +528,7 @@ test_expect_success 'redo merge of z into m (== y) with default ("manual") resol
        git update-ref refs/notes/m refs/notes/y &&
        test_must_fail git notes merge z >output 2>&1 &&
        # Output should point to where to resolve conflicts
-       test_i18ngrep "\\.git/NOTES_MERGE_WORKTREE" output &&
+       test_grep "\\.git/NOTES_MERGE_WORKTREE" output &&
        # Inspect merge conflicts
        ls .git/NOTES_MERGE_WORKTREE >output_conflicts &&
        test_cmp expect_conflicts output_conflicts &&
@@ -573,9 +573,9 @@ EOF
        test "$(git rev-parse refs/notes/y)" = "$(git rev-parse NOTES_MERGE_PARTIAL^1)" &&
        test "$(git rev-parse refs/notes/m)" != "$(git rev-parse NOTES_MERGE_PARTIAL^1)" &&
        # Mention refs/notes/m, and its current and expected value in output
-       test_i18ngrep -q "refs/notes/m" output &&
-       test_i18ngrep -q "$(git rev-parse refs/notes/m)" output &&
-       test_i18ngrep -q "$(git rev-parse NOTES_MERGE_PARTIAL^1)" output &&
+       test_grep -q "refs/notes/m" output &&
+       test_grep -q "$(git rev-parse refs/notes/m)" output &&
+       test_grep -q "$(git rev-parse NOTES_MERGE_PARTIAL^1)" output &&
        # Verify that other notes refs has not changed (w, x, y and z)
        verify_notes w &&
        verify_notes x &&
index bff0aea550f285a6c2073efd50182cbc5fab8656..0fd33280cf91f7fe9384205df8b7570363a37076 100755 (executable)
@@ -57,7 +57,7 @@ test_expect_success 'merge z into y while mid-merge in another workdir fails' '
                cd worktree &&
                git config core.notesRef refs/notes/y &&
                test_must_fail git notes merge z 2>err &&
-               test_i18ngrep "a notes merge into refs/notes/y is already in-progress at" err
+               test_grep "a notes merge into refs/notes/y is already in-progress at" err
        ) &&
        test_must_fail git -C worktree symbolic-ref NOTES_MERGE_REF
 '
@@ -67,7 +67,7 @@ test_expect_success 'merge z into x while mid-merge on y succeeds' '
                cd worktree2 &&
                git config core.notesRef refs/notes/x &&
                test_must_fail git notes merge z >out 2>&1 &&
-               test_i18ngrep "Automatic notes merge failed" out &&
+               test_grep "Automatic notes merge failed" out &&
                grep -v "A notes merge into refs/notes/x is already in-progress in" out
        ) &&
        echo "refs/notes/x" >expect &&
index 028d825e8fb2d1757cd4341d693815bdd1c5642f..33c13229896249321073798c2419df14e913dadf 100755 (executable)
@@ -428,7 +428,7 @@ test_expect_success 'add notes with empty messages' '
        git notes add -m "${LF}" \
                      -m "${MULTI_LF}" \
                      -m "${LF}" >actual 2>&1 &&
-       test_i18ngrep "Removing note for object" actual
+       test_grep "Removing note for object" actual
 '
 
 test_expect_success 'add note by specifying "-C", "--no-stripspace" is the default behavior' '
index 3ce918fdb8062fc5f720bb890ad58a2676547218..621c8ef84c8acc29e4a7ff8adbdf467a66b9e237 100755 (executable)
@@ -143,8 +143,8 @@ test_expect_success 'Show verbose error when HEAD could not be detached' '
        >B &&
        test_when_finished "rm -f B" &&
        test_must_fail git rebase topic 2>output.err >output.out &&
-       test_i18ngrep "The following untracked working tree files would be overwritten by checkout:" output.err &&
-       test_i18ngrep B output.err
+       test_grep "The following untracked working tree files would be overwritten by checkout:" output.err &&
+       test_grep B output.err
 '
 
 test_expect_success 'fail when upstream arg is missing and not on branch' '
@@ -421,7 +421,7 @@ test_expect_success 'refuse to switch to branch checked out elsewhere' '
        git checkout main &&
        git worktree add wt &&
        test_must_fail git -C wt rebase main main 2>err &&
-       test_i18ngrep "already checked out" err
+       test_grep "already checked out" err
 '
 
 test_expect_success MINGW,SYMLINKS_WINDOWS 'rebase when .git/logs is a symlink' '
index e9e03ca4b5eb16e6c40815a25197e3e22bb37561..5c67d07ba3ecf6333d1967c341d9bfb75fc33769 100755 (executable)
@@ -171,7 +171,7 @@ test_expect_success '--reapply-cherry-picks' '
 
        # Regular rebase fails, because the 1-11 commit is deduplicated
        test_must_fail git -C repo rebase --merge main 2> err &&
-       test_i18ngrep "error: could not apply.*add 12 in another branch" err &&
+       test_grep "error: could not apply.*add 12 in another branch" err &&
        git -C repo rebase --abort &&
 
        # With --reapply-cherry-picks, it works
index f6e48644978b63ab00ccf40cca379e0770aef0b9..a1911c4a9d60e71f99d66ef6d7f30728ab8732df 100755 (executable)
@@ -108,10 +108,10 @@ test_expect_success 'correct advice upon picking empty commit' '
        test_when_finished "git rebase --abort" &&
        test_must_fail git rebase -i --onto goodbye \
                amended-goodbye^ amended-goodbye 2>err &&
-       test_i18ngrep "previous cherry-pick is now empty" err &&
-       test_i18ngrep "git rebase --skip" err &&
+       test_grep "previous cherry-pick is now empty" err &&
+       test_grep "git rebase --skip" err &&
        test_must_fail git commit &&
-       test_i18ngrep "git rebase --skip" err
+       test_grep "git rebase --skip" err
 '
 
 test_expect_success 'correct authorship when committing empty pick' '
@@ -131,10 +131,10 @@ test_expect_success 'correct advice upon rewording empty commit' '
                test_must_fail env FAKE_LINES="reword 1" git rebase -i \
                        --onto goodbye amended-goodbye^ amended-goodbye 2>err
        ) &&
-       test_i18ngrep "previous cherry-pick is now empty" err &&
-       test_i18ngrep "git rebase --skip" err &&
+       test_grep "previous cherry-pick is now empty" err &&
+       test_grep "git rebase --skip" err &&
        test_must_fail git commit &&
-       test_i18ngrep "git rebase --skip" err
+       test_grep "git rebase --skip" err
 '
 
 test_expect_success 'correct advice upon editing empty commit' '
@@ -144,10 +144,10 @@ test_expect_success 'correct advice upon editing empty commit' '
                test_must_fail env FAKE_LINES="edit 1" git rebase -i \
                        --onto goodbye amended-goodbye^ amended-goodbye 2>err
        ) &&
-       test_i18ngrep "previous cherry-pick is now empty" err &&
-       test_i18ngrep "git rebase --skip" err &&
+       test_grep "previous cherry-pick is now empty" err &&
+       test_grep "git rebase --skip" err &&
        test_must_fail git commit &&
-       test_i18ngrep "git rebase --skip" err
+       test_grep "git rebase --skip" err
 '
 
 test_expect_success 'correct advice upon cherry-picking an empty commit during a rebase' '
@@ -157,10 +157,10 @@ test_expect_success 'correct advice upon cherry-picking an empty commit during a
                test_must_fail env FAKE_LINES="1 exec_git_cherry-pick_amended-goodbye" \
                        git rebase -i goodbye^ goodbye 2>err
        ) &&
-       test_i18ngrep "previous cherry-pick is now empty" err &&
-       test_i18ngrep "git cherry-pick --skip" err &&
+       test_grep "previous cherry-pick is now empty" err &&
+       test_grep "git cherry-pick --skip" err &&
        test_must_fail git commit 2>err &&
-       test_i18ngrep "git cherry-pick --skip" err
+       test_grep "git cherry-pick --skip" err
 '
 
 test_expect_success 'correct advice upon multi cherry-pick picking an empty commit during a rebase' '
@@ -170,10 +170,10 @@ test_expect_success 'correct advice upon multi cherry-pick picking an empty comm
                test_must_fail env FAKE_LINES="1 exec_git_cherry-pick_goodbye_amended-goodbye" \
                        git rebase -i goodbye^^ goodbye 2>err
        ) &&
-       test_i18ngrep "previous cherry-pick is now empty" err &&
-       test_i18ngrep "git cherry-pick --skip" err &&
+       test_grep "previous cherry-pick is now empty" err &&
+       test_grep "git cherry-pick --skip" err &&
        test_must_fail git commit 2>err &&
-       test_i18ngrep "git cherry-pick --skip" err
+       test_grep "git cherry-pick --skip" err
 '
 
 test_expect_success 'fixup that empties commit fails' '
index 96a56aafbed67ca7e47ac173c00afdbe17b000ad..dbd5df5aa469ada4da859fed5651f7b03f4171f3 100755 (executable)
@@ -291,9 +291,9 @@ test_expect_success 'abort with error when new base cannot be checked out' '
        git rm --cached file1 &&
        git commit -m "remove file in base" &&
        test_must_fail git rebase -i primary > output 2>&1 &&
-       test_i18ngrep "The following untracked working tree files would be overwritten by checkout:" \
+       test_grep "The following untracked working tree files would be overwritten by checkout:" \
                output &&
-       test_i18ngrep "file1" output &&
+       test_grep "file1" output &&
        test_path_is_missing .git/rebase-merge &&
        rm file1 &&
        git reset --hard HEAD^
@@ -604,7 +604,7 @@ test_expect_success 'clean error after failed "exec"' '
        echo "edited again" > file7 &&
        git add file7 &&
        test_must_fail git rebase --continue 2>error &&
-       test_i18ngrep "you have staged changes in your working tree" error
+       test_grep "you have staged changes in your working tree" error
 '
 
 test_expect_success 'rebase a detached HEAD' '
@@ -955,7 +955,7 @@ test_expect_success 'rebase --exec works without -i ' '
        git reset --hard execute &&
        rm -rf exec_output &&
        EDITOR="echo >invoked_editor" git rebase --exec "echo a line >>exec_output"  HEAD~2 2>actual &&
-       test_i18ngrep  "Successfully rebased and updated" actual &&
+       test_grep  "Successfully rebased and updated" actual &&
        test_line_count = 2 exec_output &&
        test_path_is_missing invoked_editor
 '
@@ -963,7 +963,7 @@ test_expect_success 'rebase --exec works without -i ' '
 test_expect_success 'rebase -i --exec without <CMD>' '
        git reset --hard execute &&
        test_must_fail git rebase -i --exec 2>actual &&
-       test_i18ngrep "requires a value" actual &&
+       test_grep "requires a value" actual &&
        git checkout primary
 '
 
@@ -1272,7 +1272,7 @@ test_expect_success 'todo count' '
                test_set_editor "$(pwd)/dump-raw.sh" &&
                git rebase -i HEAD~4 >actual
        ) &&
-       test_i18ngrep "^# Rebase ..* onto ..* ([0-9]" actual
+       test_grep "^# Rebase ..* onto ..* ([0-9]" actual
 '
 
 test_expect_success 'rebase -i commits that overwrite untracked files (pick)' '
@@ -1379,7 +1379,7 @@ test_expect_success 'rebase -i respects rebase.missingCommitsCheck = ignore' '
                FAKE_LINES="1 2 3 4" git rebase -i --root 2>actual
        ) &&
        test D = $(git cat-file commit HEAD | sed -ne \$p) &&
-       test_i18ngrep \
+       test_grep \
                "Successfully rebased and updated refs/heads/missing-commit" \
                actual
 '
@@ -1442,7 +1442,7 @@ test_expect_success 'rebase --edit-todo respects rebase.missingCommitsCheck = ig
                git rebase --continue 2>actual
        ) &&
        test D = $(git cat-file commit HEAD | sed -ne \$p) &&
-       test_i18ngrep \
+       test_grep \
                "Successfully rebased and updated refs/heads/missing-commit" \
                actual
 '
@@ -1477,7 +1477,7 @@ test_expect_success 'rebase --edit-todo respects rebase.missingCommitsCheck = wa
                git rebase --continue 2>actual
        ) &&
        test D = $(git cat-file commit HEAD | sed -ne \$p) &&
-       test_i18ngrep \
+       test_grep \
                "Successfully rebased and updated refs/heads/missing-commit" \
                actual
 '
@@ -1525,7 +1525,7 @@ test_expect_success 'rebase --edit-todo respects rebase.missingCommitsCheck = er
                git rebase --continue 2>actual
        ) &&
        test D = $(git cat-file commit HEAD | sed -ne \$p) &&
-       test_i18ngrep \
+       test_grep \
                "Successfully rebased and updated refs/heads/missing-commit" \
                actual
 '
@@ -1585,9 +1585,9 @@ test_expect_success 'static check of bad command' '
                set_fake_editor &&
                test_must_fail env FAKE_LINES="1 2 3 bad 4 5" \
                git rebase -i --root 2>actual &&
-               test_i18ngrep "pickled $(git rev-list --oneline -1 primary~1)" \
+               test_grep "pickled $(git rev-list --oneline -1 primary~1)" \
                                actual &&
-               test_i18ngrep "You can fix this with .git rebase --edit-todo.." \
+               test_grep "You can fix this with .git rebase --edit-todo.." \
                                actual &&
                FAKE_LINES="1 2 3 drop 4 5" git rebase --edit-todo
        ) &&
@@ -1645,8 +1645,8 @@ test_expect_success 'static check of bad SHA-1' '
                set_fake_editor &&
                test_must_fail env FAKE_LINES="1 2 edit fakesha 3 4 5 #" \
                        git rebase -i --root 2>actual &&
-                       test_i18ngrep "edit XXXXXXX False commit" actual &&
-                       test_i18ngrep "You can fix this with .git rebase --edit-todo.." \
+                       test_grep "edit XXXXXXX False commit" actual &&
+                       test_grep "You can fix this with .git rebase --edit-todo.." \
                                        actual &&
                FAKE_LINES="1 2 4 5 6" git rebase --edit-todo
        ) &&
@@ -1673,7 +1673,7 @@ test_expect_success 'rebase -i --gpg-sign=<key-id>' '
                FAKE_LINES="edit 1" git rebase -i --gpg-sign="\"S I Gner\"" \
                        HEAD^ >out 2>err
        ) &&
-       test_i18ngrep "$SQ-S\"S I Gner\"$SQ" err
+       test_grep "$SQ-S\"S I Gner\"$SQ" err
 '
 
 test_expect_success 'rebase -i --gpg-sign=<key-id> overrides commit.gpgSign' '
@@ -1684,7 +1684,7 @@ test_expect_success 'rebase -i --gpg-sign=<key-id> overrides commit.gpgSign' '
                FAKE_LINES="edit 1" git rebase -i --gpg-sign="\"S I Gner\"" \
                        HEAD^ >out 2>err
        ) &&
-       test_i18ngrep "$SQ-S\"S I Gner\"$SQ" err
+       test_grep "$SQ-S\"S I Gner\"$SQ" err
 '
 
 test_expect_success 'valid author header after --root swap' '
@@ -1738,7 +1738,7 @@ test_expect_success 'correct error message for partial commit after empty pick'
        ) &&
        echo x >file1 &&
        test_must_fail git commit file1 2>err &&
-       test_i18ngrep "cannot do a partial commit during a rebase." err
+       test_grep "cannot do a partial commit during a rebase." err
 '
 
 test_expect_success 'correct error message for commit --amend after empty pick' '
@@ -1751,13 +1751,13 @@ test_expect_success 'correct error message for commit --amend after empty pick'
        ) &&
        echo x>file1 &&
        test_must_fail git commit -a --amend 2>err &&
-       test_i18ngrep "middle of a rebase -- cannot amend." err
+       test_grep "middle of a rebase -- cannot amend." err
 '
 
 test_expect_success 'todo has correct onto hash' '
        GIT_SEQUENCE_EDITOR=cat git rebase -i no-conflict-branch~4 no-conflict-branch >actual &&
        onto=$(git rev-parse --short HEAD~4) &&
-       test_i18ngrep "^# Rebase ..* onto $onto" actual
+       test_grep "^# Rebase ..* onto $onto" actual
 '
 
 test_expect_success 'ORIG_HEAD is updated correctly' '
index ceca160005339168982d702e7d4e4e4897d494d3..a1d7fa7f7c6965f49cc017303aca52a658211b10 100755 (executable)
@@ -33,24 +33,24 @@ test_expect_success 'rebase -m' '
 
 test_expect_success 'rebase against main twice' '
        git rebase --apply main >out &&
-       test_i18ngrep "Current branch topic is up to date" out
+       test_grep "Current branch topic is up to date" out
 '
 
 test_expect_success 'rebase against main twice with --force' '
        git rebase --force-rebase --apply main >out &&
-       test_i18ngrep "Current branch topic is up to date, rebase forced" out
+       test_grep "Current branch topic is up to date, rebase forced" out
 '
 
 test_expect_success 'rebase against main twice from another branch' '
        git checkout topic^ &&
        git rebase --apply main topic >out &&
-       test_i18ngrep "Current branch topic is up to date" out
+       test_grep "Current branch topic is up to date" out
 '
 
 test_expect_success 'rebase fast-forward to main' '
        git checkout topic^ &&
        git rebase --apply topic >out &&
-       test_i18ngrep "Fast-forwarded HEAD to topic" out
+       test_grep "Fast-forwarded HEAD to topic" out
 '
 
 test_expect_success 'rebase --stat' '
@@ -75,14 +75,14 @@ test_expect_success 'rebase -n overrides config rebase.stat config' '
 
 test_expect_success 'rebase --onto outputs the invalid ref' '
        test_must_fail git rebase --onto invalid-ref HEAD HEAD 2>err &&
-       test_i18ngrep "invalid-ref" err
+       test_grep "invalid-ref" err
 '
 
 test_expect_success 'error out early upon -C<n> or --whitespace=<bad>' '
        test_must_fail git rebase -Cnot-a-number HEAD 2>err &&
-       test_i18ngrep "numerical value" err &&
+       test_grep "numerical value" err &&
        test_must_fail git rebase --whitespace=bad HEAD 2>err &&
-       test_i18ngrep "Invalid whitespace option" err
+       test_grep "Invalid whitespace option" err
 '
 
 write_reflog_expect () {
@@ -251,8 +251,8 @@ test_expect_success 'rebase -i onto unrelated history' '
        git -C unrelated remote add -f origin "$PWD" &&
        git -C unrelated branch --set-upstream-to=origin/main &&
        git -C unrelated -c core.editor=true rebase -i -v --stat >actual &&
-       test_i18ngrep "Changes to " actual &&
-       test_i18ngrep "5 files changed" actual
+       test_grep "Changes to " actual &&
+       test_grep "5 files changed" actual
 '
 
 test_done
index fb7b68990cc33a6cbd08ba7031d405713db87446..108d5c28fa137819233c6c85bae5f6d9e3b3f9e8 100755 (executable)
@@ -182,8 +182,8 @@ test_expect_success '--skip after failed fixup cleans commit message' '
 
        : Final squash failed, but there was still a squash &&
        head -n1 .git/copy.txt >first-line &&
-       test_i18ngrep "# This is a combination of 3 commits" first-line &&
-       test_i18ngrep "# This is the commit message #3:" .git/copy.txt
+       test_grep "# This is a combination of 3 commits" first-line &&
+       test_grep "# This is the commit message #3:" .git/copy.txt
 '
 
 test_expect_success 'setup rerere database' '
@@ -276,7 +276,7 @@ test_expect_success '--reschedule-failed-exec' '
        test_must_fail git -c rebase.rescheduleFailedExec=true \
                rebase -x false HEAD^ 2>err &&
        grep "^exec false" .git/rebase-merge/git-rebase-todo &&
-       test_i18ngrep "has been rescheduled" err
+       test_grep "has been rescheduled" err
 '
 
 test_expect_success 'rebase.rescheduleFailedExec only affects `rebase -i`' '
index 4bfc779bb875fe9989bf67833eb5c5477095d72c..0bb284d61dbfae3077c7408ba266ca596e61207d 100755 (executable)
@@ -84,7 +84,7 @@ test_expect_success 'git rebase --fork-point with ambigous refname' '
 
 test_expect_success '--fork-point and --root both given' '
        test_must_fail git rebase --fork-point --root 2>err &&
-       test_i18ngrep "cannot be used together" err
+       test_grep "cannot be used together" err
 '
 
 test_expect_success 'rebase.forkPoint set to false' '
index e2ef6193233dd0b7a2341c391695aabd73d03200..3eac20c098c10a08d3fd1f52bc6ee6689fb7816f 100755 (executable)
@@ -43,7 +43,7 @@ test_expect_success 'cherry-pick --nonsense' '
        git diff --exit-code HEAD &&
        test_must_fail git cherry-pick --nonsense 2>msg &&
        git diff --exit-code HEAD "$pos" &&
-       test_i18ngrep "[Uu]sage:" msg
+       test_grep "[Uu]sage:" msg
 '
 
 test_expect_success 'revert --nonsense' '
@@ -52,7 +52,7 @@ test_expect_success 'revert --nonsense' '
        git diff --exit-code HEAD &&
        test_must_fail git revert --nonsense 2>msg &&
        git diff --exit-code HEAD "$pos" &&
-       test_i18ngrep "[Uu]sage:" msg
+       test_grep "[Uu]sage:" msg
 '
 
 # the following two test cherry-pick and revert with renames
@@ -99,7 +99,7 @@ test_expect_success 'revert forbidden on dirty working tree' '
        echo content >extra_file &&
        git add extra_file &&
        test_must_fail git revert HEAD 2>errors &&
-       test_i18ngrep "your local changes would be overwritten by " errors
+       test_grep "your local changes would be overwritten by " errors
 
 '
 
index f32799e04633fd831293d5b64106f9c856d3d407..c88d597b12682ccc611699f43c6451e35483fe6a 100755 (executable)
@@ -177,7 +177,7 @@ test_expect_success 'partial commit of cherry-pick fails' '
        git add foo &&
        test_must_fail git commit foo 2>err &&
 
-       test_i18ngrep "cannot do a partial commit during a cherry-pick." err
+       test_grep "cannot do a partial commit during a cherry-pick." err
 '
 
 test_expect_success 'commit --amend of cherry-pick fails' '
@@ -188,7 +188,7 @@ test_expect_success 'commit --amend of cherry-pick fails' '
        git add foo &&
        test_must_fail git commit --amend 2>err &&
 
-       test_i18ngrep "in the middle of a cherry-pick -- cannot amend." err
+       test_grep "in the middle of a cherry-pick -- cannot amend." err
 '
 
 test_expect_success 'successful final commit clears cherry-pick state' '
@@ -498,7 +498,7 @@ test_expect_success \
 test_expect_success 'failed cherry-pick does not forget -s' '
        pristine_detach initial &&
        test_must_fail git cherry-pick -s picked &&
-       test_i18ngrep -e "Signed-off-by" .git/MERGE_MSG
+       test_grep -e "Signed-off-by" .git/MERGE_MSG
 '
 
 test_expect_success 'commit after failed cherry-pick does not add duplicated -s' '
@@ -563,7 +563,7 @@ test_expect_success 'cherry-pick preserves sparse-checkout' '
        echo /unrelated >.git/info/sparse-checkout &&
        git read-tree --reset -u HEAD &&
        test_must_fail git cherry-pick -Xours picked>actual &&
-       test_i18ngrep ! "Changes not staged for commit:" actual
+       test_grep ! "Changes not staged for commit:" actual
 '
 
 test_expect_success 'cherry-pick --continue remembers --keep-redundant-commits' '
index 3b0fa66c33da5857012b56d465c5ffad77f61be4..72020a51c4375fd793af7e0129443cbf8d11d929 100755 (executable)
@@ -154,7 +154,7 @@ test_expect_success 'skip "empty" commit' '
        pristine_detach picked &&
        test_commit dummy foo d &&
        test_must_fail git cherry-pick anotherpick 2>err &&
-       test_i18ngrep "git cherry-pick --skip" err &&
+       test_grep "git cherry-pick --skip" err &&
        git cherry-pick --skip &&
        test_cmp_rev dummy HEAD
 '
@@ -314,7 +314,7 @@ test_expect_success '--abort does not unsafely change HEAD' '
        git reset --hard base &&
        test_must_fail git cherry-pick picked anotherpick &&
        git cherry-pick --abort 2>actual &&
-       test_i18ngrep "You seem to have moved HEAD" actual &&
+       test_grep "You seem to have moved HEAD" actual &&
        test_cmp_rev base HEAD
 '
 
@@ -520,7 +520,7 @@ test_expect_success '--continue asks for help after resolving patch to nil' '
        test_cmp_rev unrelatedpick CHERRY_PICK_HEAD &&
        git checkout HEAD -- unrelated &&
        test_must_fail git cherry-pick --continue 2>msg &&
-       test_i18ngrep "The previous cherry-pick is now empty" msg
+       test_grep "The previous cherry-pick is now empty" msg
 '
 
 test_expect_success 'follow advice and skip nil patch' '
index 0e8afe49ed100cb3c1b89f8c33b639ab8ac1cabb..98259e2adaa9dba9fa6bbcb79e50948e69a6b9e6 100755 (executable)
@@ -276,7 +276,7 @@ test_expect_success 'Resolving by removal is not a warning-worthy event' '
        blob=$(echo blob | git hash-object -w --stdin) &&
        printf "100644 $blob %d\tblob\n" 1 2 3 | git update-index --index-info &&
        git rm blob >msg 2>&1 &&
-       test_i18ngrep ! "needs merge" msg &&
+       test_grep ! "needs merge" msg &&
        test_must_fail git ls-files -s --error-unmatch blob
 '
 
@@ -631,7 +631,7 @@ test_expect_success 'rm of a populated submodule with a .git directory migrates
        test_path_is_missing submod/.git &&
        git status -s -uno --ignore-submodules=none >actual &&
        test_file_not_empty actual &&
-       test_i18ngrep Migrating output.err
+       test_grep Migrating output.err
 '
 
 cat >expect.deepmodified <<EOF
@@ -722,7 +722,7 @@ test_expect_success "rm absorbs submodule's nested .git directory" '
        test_path_is_missing submod/subsubmod/.git &&
        git status -s -uno --ignore-submodules=none >actual &&
        test_file_not_empty actual &&
-       test_i18ngrep Migrating output.err
+       test_grep Migrating output.err
 '
 
 test_expect_success 'checking out a commit after submodule removal needs manual updates' '
@@ -731,7 +731,7 @@ test_expect_success 'checking out a commit after submodule removal needs manual
        git submodule update &&
        git checkout -q HEAD^ &&
        git checkout -q main 2>actual &&
-       test_i18ngrep "^warning: unable to rmdir '\''submod'\'':" actual &&
+       test_grep "^warning: unable to rmdir '\''submod'\'':" actual &&
        git status -s submod >actual &&
        echo "?? submod/" >expected &&
        test_cmp expected actual &&
index a2a0c820fe38a976b963570453df17a089599f9d..7cef12981c4be0b611f70fe021d5960f1ad4e5a8 100755 (executable)
@@ -67,14 +67,14 @@ test_expect_success 'error conditions' '
        echo fileA.t >list &&
 
        test_must_fail git rm --pathspec-from-file=list -- fileA.t 2>err &&
-       test_i18ngrep -e ".--pathspec-from-file. and pathspec arguments cannot be used together" err &&
+       test_grep -e ".--pathspec-from-file. and pathspec arguments cannot be used together" err &&
 
        test_must_fail git rm --pathspec-file-nul 2>err &&
-       test_i18ngrep -e "the option .--pathspec-file-nul. requires .--pathspec-from-file." err &&
+       test_grep -e "the option .--pathspec-file-nul. requires .--pathspec-from-file." err &&
 
        >empty_list &&
        test_must_fail git rm --pathspec-from-file=empty_list 2>err &&
-       test_i18ngrep -e "No pathspec was given. Which files should I remove?" err
+       test_grep -e "No pathspec was given. Which files should I remove?" err
 '
 
 test_done
index 7623689da24501a7bb7cd7224035f854eeab43ff..f23d39f0d52ec6f5035acfb029550babc67859da 100755 (executable)
@@ -438,7 +438,7 @@ test_expect_success 'git add --chmod fails with non regular files (but updates t
        test_ln_s_add foo foo3 &&
        touch foo4 &&
        test_must_fail git add --chmod=+x foo3 foo4 2>stderr &&
-       test_i18ngrep "cannot chmod +x .foo3." stderr &&
+       test_grep "cannot chmod +x .foo3." stderr &&
        test_mode_in_index 120000 foo3 &&
        test_mode_in_index 100755 foo4
 '
@@ -455,12 +455,12 @@ test_expect_success 'git add --chmod --dry-run reports error for non regular fil
        git reset --hard &&
        test_ln_s_add foo foo4 &&
        test_must_fail git add --chmod=+x --dry-run foo4 2>stderr &&
-       test_i18ngrep "cannot chmod +x .foo4." stderr
+       test_grep "cannot chmod +x .foo4." stderr
 '
 
 test_expect_success 'git add --chmod --dry-run reports error for unmatched pathspec' '
        test_must_fail git add --chmod=+x --dry-run nonexistent 2>stderr &&
-       test_i18ngrep "pathspec .nonexistent. did not match any files" stderr
+       test_grep "pathspec .nonexistent. did not match any files" stderr
 '
 
 test_expect_success 'no file status change if no pathspec is given' '
index 34aabb7f5f6a543b31f89650f63b8783e9071271..0b5339ac6ca8248582ce723e3d552a8d4513e294 100755 (executable)
@@ -335,12 +335,12 @@ test_expect_success 'different prompts for mode change/deleted' '
 test_expect_success 'correct message when there is nothing to do' '
        git reset --hard &&
        git add -p 2>err &&
-       test_i18ngrep "No changes" err &&
+       test_grep "No changes" err &&
        printf "\\0123" >binary &&
        git add binary &&
        printf "\\0abc" >binary &&
        git add -p 2>err &&
-       test_i18ngrep "Only binary files changed" err
+       test_grep "Only binary files changed" err
 '
 
 test_expect_success 'setup again' '
@@ -497,7 +497,7 @@ test_expect_success 'adding an empty file' '
 
                echo y | git checkout -p added-file -- >actual &&
                test_path_is_file empty &&
-               test_i18ngrep "Apply addition to index and worktree" actual
+               test_grep "Apply addition to index and worktree" actual
        )
 '
 
@@ -838,7 +838,7 @@ test_expect_success 'diff.algorithm is passed to `git diff-files`' '
        git add file &&
        echo changed >file &&
        test_must_fail git -c diff.algorithm=bogus add -p 2>err &&
-       test_i18ngrep "error: option diff-algorithm accepts " err
+       test_grep "error: option diff-algorithm accepts " err
 '
 
 test_expect_success 'patch-mode via -i prompts for files' '
index 4e6b5177c9329b11ee9046d75e6cf5b0dbf358df..3aa59f6f639b5bfc79ab048f594cb2512755be73 100755 (executable)
@@ -138,23 +138,23 @@ test_expect_success 'error conditions' '
        >empty_list &&
 
        test_must_fail git add --pathspec-from-file=list --interactive 2>err &&
-       test_i18ngrep -e "options .--pathspec-from-file. and .--interactive/--patch. cannot be used together" err &&
+       test_grep -e "options .--pathspec-from-file. and .--interactive/--patch. cannot be used together" err &&
 
        test_must_fail git add --pathspec-from-file=list --patch 2>err &&
-       test_i18ngrep -e "options .--pathspec-from-file. and .--interactive/--patch. cannot be used together" err &&
+       test_grep -e "options .--pathspec-from-file. and .--interactive/--patch. cannot be used together" err &&
 
        test_must_fail git add --pathspec-from-file=list --edit 2>err &&
-       test_i18ngrep -e "options .--pathspec-from-file. and .--edit. cannot be used together" err &&
+       test_grep -e "options .--pathspec-from-file. and .--edit. cannot be used together" err &&
 
        test_must_fail git add --pathspec-from-file=list -- fileA.t 2>err &&
-       test_i18ngrep -e ".--pathspec-from-file. and pathspec arguments cannot be used together" err &&
+       test_grep -e ".--pathspec-from-file. and pathspec arguments cannot be used together" err &&
 
        test_must_fail git add --pathspec-file-nul 2>err &&
-       test_i18ngrep -e "the option .--pathspec-file-nul. requires .--pathspec-from-file." err &&
+       test_grep -e "the option .--pathspec-file-nul. requires .--pathspec-from-file." err &&
 
        # This case succeeds, but still prints to stderr
        git add --pathspec-from-file=empty_list 2>err &&
-       test_i18ngrep -e "Nothing specified, nothing added." err
+       test_grep -e "Nothing specified, nothing added." err
 '
 
 test_done
index bfab245eb32b07d9a30810f9b388dcf9c629bdf3..f27d09cfd9439ae31ec707fe738356bca88064f6 100755 (executable)
@@ -45,7 +45,7 @@ test_expect_success 'UTF-8 invalid characters refused' '
        printf "Commit message\n\nInvalid surrogate:\355\240\200\n" \
                >"$HOME/invalid" &&
        git commit -a -F "$HOME/invalid" 2>"$HOME"/stderr &&
-       test_i18ngrep "did not conform" "$HOME"/stderr
+       test_grep "did not conform" "$HOME"/stderr
 '
 
 test_expect_success 'UTF-8 overlong sequences rejected' '
@@ -55,7 +55,7 @@ test_expect_success 'UTF-8 overlong sequences rejected' '
        printf "\340\202\251ommit message\n\nThis is not a space:\300\240\n" \
                >"$HOME/invalid" &&
        git commit -a -F "$HOME/invalid" 2>"$HOME"/stderr &&
-       test_i18ngrep "did not conform" "$HOME"/stderr
+       test_grep "did not conform" "$HOME"/stderr
 '
 
 test_expect_success 'UTF-8 non-characters refused' '
@@ -64,7 +64,7 @@ test_expect_success 'UTF-8 non-characters refused' '
        printf "Commit message\n\nNon-character:\364\217\277\276\n" \
                >"$HOME/invalid" &&
        git commit -a -F "$HOME/invalid" 2>"$HOME"/stderr &&
-       test_i18ngrep "did not conform" "$HOME"/stderr
+       test_grep "did not conform" "$HOME"/stderr
 '
 
 test_expect_success 'UTF-8 non-characters refused' '
@@ -73,7 +73,7 @@ test_expect_success 'UTF-8 non-characters refused' '
        printf "Commit message\n\nNon-character:\357\267\220\n" \
                >"$HOME/invalid" &&
        git commit -a -F "$HOME/invalid" 2>"$HOME"/stderr &&
-       test_i18ngrep "did not conform" "$HOME"/stderr
+       test_grep "did not conform" "$HOME"/stderr
 '
 
 for H in ISO8859-1 eucJP ISO-2022-JP
index 4f16a735d99e835b3b812130659ba609b1bfc284..4b37f78829819ff023db64b026fc6b8ea4061deb 100755 (executable)
@@ -298,7 +298,7 @@ test_expect_success 'am --no-utf8 (U/L)' '
 
        # commit-tree will warn that the commit message does not contain valid UTF-8
        # as mailinfo did not convert it
-       test_i18ngrep "did not conform" err &&
+       test_grep "did not conform" err &&
 
        check_encoding 2
 '
index 0b3dfeaea20048426be4d032dd6dc7e66359dc67..3bec71f05664740b7a7b4d566423ee7e7a8c2ada 100755 (executable)
@@ -395,7 +395,7 @@ test_expect_success 'stash --staged' '
 
 test_expect_success 'dont assume push with non-option args' '
        test_must_fail git stash -q drop 2>err &&
-       test_i18ngrep -e "subcommand wasn'\''t specified; '\''push'\'' can'\''t be assumed due to unexpected token '\''drop'\''" err
+       test_grep -e "subcommand wasn'\''t specified; '\''push'\'' can'\''t be assumed due to unexpected token '\''drop'\''" err
 '
 
 test_expect_success 'stash --invalid-option' '
@@ -596,7 +596,7 @@ test_expect_success 'giving too many ref arguments does not modify files' '
        for type in apply pop "branch stash-branch"
        do
                test_must_fail git stash $type stash@{0} stash@{1} 2>err &&
-               test_i18ngrep "Too many revisions" err &&
+               test_grep "Too many revisions" err &&
                test 123456789 = $(test-tool chmtime -g file2) || return 1
        done
 '
@@ -604,14 +604,14 @@ test_expect_success 'giving too many ref arguments does not modify files' '
 test_expect_success 'drop: too many arguments errors out (does nothing)' '
        git stash list >expect &&
        test_must_fail git stash drop stash@{0} stash@{1} 2>err &&
-       test_i18ngrep "Too many revisions" err &&
+       test_grep "Too many revisions" err &&
        git stash list >actual &&
        test_cmp expect actual
 '
 
 test_expect_success 'show: too many arguments errors out (does nothing)' '
        test_must_fail git stash show stash@{0} stash@{1} 2>err 1>out &&
-       test_i18ngrep "Too many revisions" err &&
+       test_grep "Too many revisions" err &&
        test_must_be_empty out
 '
 
@@ -654,7 +654,7 @@ test_expect_success 'stash branch - stashes on stack, stash-like argument' '
 
 test_expect_success 'stash branch complains with no arguments' '
        test_must_fail git stash branch 2>err &&
-       test_i18ngrep "No branch name specified" err
+       test_grep "No branch name specified" err
 '
 
 test_expect_success 'stash show format defaults to --stat' '
index 5390eec4e3b57eefca8971d86fa08b8f09c93747..1289ae3e07c635d30930067022969247b2b63f1f 100755 (executable)
@@ -404,7 +404,7 @@ test_expect_success 'stash show --include-untracked errors on duplicate files' '
        ) &&
        w_commit=$(git commit-tree -p HEAD -p "$i_commit" -p "$u_commit" -m "WIP on any-branch" "$tree") &&
        test_must_fail git stash show --include-untracked "$w_commit" 2>err &&
-       test_i18ngrep "worktree and untracked commit have duplicate entries: tracked" err
+       test_grep "worktree and untracked commit have duplicate entries: tracked" err
 '
 
 test_expect_success 'stash show --{include,only}-untracked on stashes without untracked entries' '
index dead9f18d937599427afe2c29fc177ed00f187ec..73f2dbdeb022ee71d04e9961da959f60d6eabd5c 100755 (executable)
@@ -88,13 +88,13 @@ test_expect_success 'error conditions' '
        echo fileA.t >list &&
 
        test_must_fail git stash push --pathspec-from-file=list --patch 2>err &&
-       test_i18ngrep -e "options .--pathspec-from-file. and .--patch. cannot be used together" err &&
+       test_grep -e "options .--pathspec-from-file. and .--patch. cannot be used together" err &&
 
        test_must_fail git stash push --pathspec-from-file=list -- fileA.t 2>err &&
-       test_i18ngrep -e ".--pathspec-from-file. and pathspec arguments cannot be used together" err &&
+       test_grep -e ".--pathspec-from-file. and pathspec arguments cannot be used together" err &&
 
        test_must_fail git stash push --pathspec-file-nul 2>err &&
-       test_i18ngrep -e "the option .--pathspec-file-nul. requires .--pathspec-from-file." err
+       test_grep -e "the option .--pathspec-file-nul. requires .--pathspec-from-file." err
 '
 
 test_done
index 3dc90470446dbb81e9c9421dbc7c21d3648d91f4..85be1367de6a3f73e1162ffc03563ec7b9a9eb5a 100755 (executable)
@@ -135,25 +135,25 @@ test_expect_success 'favour same basenames over different ones' '
        mkdir subdir &&
        git mv another-path subdir/path1 &&
        git status >out &&
-       test_i18ngrep "renamed: .*path1 -> subdir/path1" out
+       test_grep "renamed: .*path1 -> subdir/path1" out
 '
 
 test_expect_success 'test diff.renames=true for git status' '
        git -c diff.renames=true status >out &&
-       test_i18ngrep "renamed: .*path1 -> subdir/path1" out
+       test_grep "renamed: .*path1 -> subdir/path1" out
 '
 
 test_expect_success 'test diff.renames=false for git status' '
        git -c diff.renames=false status >out &&
-       test_i18ngrep ! "renamed: .*path1 -> subdir/path1" out &&
-       test_i18ngrep "new file: .*subdir/path1" out &&
-       test_i18ngrep "deleted: .*[^/]path1" out
+       test_grep ! "renamed: .*path1 -> subdir/path1" out &&
+       test_grep "new file: .*subdir/path1" out &&
+       test_grep "deleted: .*[^/]path1" out
 '
 
 test_expect_success 'favour same basenames even with minor differences' '
        git show HEAD:path1 | sed "s/15/16/" > subdir/path1 &&
        git status >out &&
-       test_i18ngrep "renamed: .*path1 -> subdir/path1" out
+       test_grep "renamed: .*path1 -> subdir/path1" out
 '
 
 test_expect_success 'two files with same basename and same content' '
@@ -165,7 +165,7 @@ test_expect_success 'two files with same basename and same content' '
        git commit -m 2 &&
        git mv dir other-dir &&
        git status >out &&
-       test_i18ngrep "renamed: .*dir/A/file -> other-dir/A/file" out
+       test_grep "renamed: .*dir/A/file -> other-dir/A/file" out
 '
 
 test_expect_success 'setup for many rename source candidates' '
@@ -202,9 +202,9 @@ test_expect_success 'rename pretty print with nothing in common' '
        git mv a/b/c c/b/a &&
        git commit -m "a/b/c -> c/b/a" &&
        git diff -M --summary HEAD^ HEAD >output &&
-       test_i18ngrep " a/b/c => c/b/a " output &&
+       test_grep " a/b/c => c/b/a " output &&
        git diff -M --stat HEAD^ HEAD >output &&
-       test_i18ngrep " a/b/c => c/b/a " output
+       test_grep " a/b/c => c/b/a " output
 '
 
 test_expect_success 'rename pretty print with common prefix' '
@@ -212,9 +212,9 @@ test_expect_success 'rename pretty print with common prefix' '
        git mv c/b/a c/d/e &&
        git commit -m "c/b/a -> c/d/e" &&
        git diff -M --summary HEAD^ HEAD >output &&
-       test_i18ngrep " c/{b/a => d/e} " output &&
+       test_grep " c/{b/a => d/e} " output &&
        git diff -M --stat HEAD^ HEAD >output &&
-       test_i18ngrep " c/{b/a => d/e} " output
+       test_grep " c/{b/a => d/e} " output
 '
 
 test_expect_success 'rename pretty print with common suffix' '
@@ -222,9 +222,9 @@ test_expect_success 'rename pretty print with common suffix' '
        git mv c/d/e d/e &&
        git commit -m "c/d/e -> d/e" &&
        git diff -M --summary HEAD^ HEAD >output &&
-       test_i18ngrep " {c/d => d}/e " output &&
+       test_grep " {c/d => d}/e " output &&
        git diff -M --stat HEAD^ HEAD >output &&
-       test_i18ngrep " {c/d => d}/e " output
+       test_grep " {c/d => d}/e " output
 '
 
 test_expect_success 'rename pretty print with common prefix and suffix' '
@@ -232,9 +232,9 @@ test_expect_success 'rename pretty print with common prefix and suffix' '
        git mv d/e d/f/e &&
        git commit -m "d/e -> d/f/e" &&
        git diff -M --summary HEAD^ HEAD >output &&
-       test_i18ngrep " d/{ => f}/e " output &&
+       test_grep " d/{ => f}/e " output &&
        git diff -M --stat HEAD^ HEAD >output &&
-       test_i18ngrep " d/{ => f}/e " output
+       test_grep " d/{ => f}/e " output
 '
 
 test_expect_success 'rename pretty print common prefix and suffix overlap' '
@@ -242,9 +242,9 @@ test_expect_success 'rename pretty print common prefix and suffix overlap' '
        git mv d/f/e d/f/f/e &&
        git commit -m "d/f/e d/f/f/e" &&
        git diff -M --summary HEAD^ HEAD >output &&
-       test_i18ngrep " d/f/{ => f}/e " output &&
+       test_grep " d/f/{ => f}/e " output &&
        git diff -M --stat HEAD^ HEAD >output &&
-       test_i18ngrep " d/f/{ => f}/e " output
+       test_grep " d/f/{ => f}/e " output
 '
 
 test_expect_success 'diff-tree -l0 defaults to a big rename limit, not zero' '
index 5de1d190759f958f8c3c0319f7b4cca34f39d83c..86f3693bc04e94b1000b57c322c8b9182563f5e1 100755 (executable)
@@ -613,7 +613,7 @@ test_expect_success 'diff -I<regex> --stat' '
 
 test_expect_success 'diff -I<regex>: detect malformed regex' '
        test_expect_code 129 git diff --ignore-matching-lines="^[124-9" 2>error &&
-       test_i18ngrep "invalid regex given to -I: " error
+       test_grep "invalid regex given to -I: " error
 '
 
 # check_prefix <patch> <src> <dst>
index 3cf2b7a7fb70ec272d9f12294a26e2a1685c5999..7abd307c5cf027236f037d2451d071e9b250b91f 100755 (executable)
@@ -2369,25 +2369,25 @@ test_expect_success 'interdiff: cover-letter' '
        --q
        EOF
        git format-patch --cover-letter --interdiff=boop~2 -1 boop &&
-       test_i18ngrep "^Interdiff:$" 0000-cover-letter.patch &&
-       test_i18ngrep ! "^Interdiff:$" 0001-fleep.patch &&
+       test_grep "^Interdiff:$" 0000-cover-letter.patch &&
+       test_grep ! "^Interdiff:$" 0001-fleep.patch &&
        sed "1,/^@@ /d; /^-- $/q" 0000-cover-letter.patch >actual &&
        test_cmp expect actual
 '
 
 test_expect_success 'interdiff: reroll-count' '
        git format-patch --cover-letter --interdiff=boop~2 -v2 -1 boop &&
-       test_i18ngrep "^Interdiff ..* v1:$" v2-0000-cover-letter.patch
+       test_grep "^Interdiff ..* v1:$" v2-0000-cover-letter.patch
 '
 
 test_expect_success 'interdiff: reroll-count with a non-integer' '
        git format-patch --cover-letter --interdiff=boop~2 -v2.2 -1 boop &&
-       test_i18ngrep "^Interdiff:$" v2.2-0000-cover-letter.patch
+       test_grep "^Interdiff:$" v2.2-0000-cover-letter.patch
 '
 
 test_expect_success 'interdiff: reroll-count with a integer' '
        git format-patch --cover-letter --interdiff=boop~2 -v2 -1 boop &&
-       test_i18ngrep "^Interdiff ..* v1:$" v2-0000-cover-letter.patch
+       test_grep "^Interdiff ..* v1:$" v2-0000-cover-letter.patch
 '
 
 test_expect_success 'interdiff: solo-patch' '
@@ -2396,7 +2396,7 @@ test_expect_success 'interdiff: solo-patch' '
 
        EOF
        git format-patch --interdiff=boop~2 -1 boop &&
-       test_i18ngrep "^Interdiff:$" 0001-fleep.patch &&
+       test_grep "^Interdiff:$" 0001-fleep.patch &&
        sed "1,/^  @@ /d; /^$/q" 0001-fleep.patch >actual &&
        test_cmp expect actual
 '
index b298f220e01fe6de17a5dfe608550a5a57dcf9c6..730f025360ee44bc0718610552dfcab96294ac04 100755 (executable)
@@ -909,7 +909,7 @@ test_expect_success 'combined diff with autocrlf conversion' '
        git commit -m "the other side" x &&
        git config core.autocrlf true &&
        test_must_fail git merge one-side >actual &&
-       test_i18ngrep "Automatic merge failed" actual &&
+       test_grep "Automatic merge failed" actual &&
 
        git diff >actual.raw &&
        sed -e "1,/^@@@/d" actual.raw >actual &&
@@ -2187,27 +2187,27 @@ test_expect_success 'compare whitespace delta across moved blocks' '
 
 test_expect_success 'bogus settings in move detection erroring out' '
        test_must_fail git diff --color-moved=bogus 2>err &&
-       test_i18ngrep "must be one of" err &&
-       test_i18ngrep bogus err &&
+       test_grep "must be one of" err &&
+       test_grep bogus err &&
 
        test_must_fail git -c diff.colormoved=bogus diff 2>err &&
-       test_i18ngrep "must be one of" err &&
-       test_i18ngrep "from command-line config" err &&
+       test_grep "must be one of" err &&
+       test_grep "from command-line config" err &&
 
        test_must_fail git diff --color-moved-ws=bogus 2>err &&
-       test_i18ngrep "possible values" err &&
-       test_i18ngrep bogus err &&
+       test_grep "possible values" err &&
+       test_grep bogus err &&
 
        test_must_fail git -c diff.colormovedws=bogus diff 2>err &&
-       test_i18ngrep "possible values" err &&
-       test_i18ngrep "from command-line config" err
+       test_grep "possible values" err &&
+       test_grep "from command-line config" err
 '
 
 test_expect_success 'compare whitespace delta incompatible with other space options' '
        test_must_fail git diff \
                --color-moved-ws=allow-indentation-change,ignore-all-space \
                2>err &&
-       test_i18ngrep allow-indentation-change err
+       test_grep allow-indentation-change err
 '
 
 EMPTY=''
index c8d555771d5072f95185f48898b59a7e88ddcd26..e026fac1f4090330f81b5b417e1b9e930795fd96 100755 (executable)
@@ -53,15 +53,15 @@ do
                echo "*.java diff=$p" >.gitattributes &&
                test_expect_code 1 git diff --no-index \
                        A.java B.java 2>msg &&
-               test_i18ngrep ! fatal msg &&
-               test_i18ngrep ! error msg
+               test_grep ! fatal msg &&
+               test_grep ! error msg
        '
        test_expect_success "builtin $p wordRegex pattern compiles" '
                echo "*.java diff=$p" >.gitattributes &&
                test_expect_code 1 git diff --no-index --word-diff \
                        A.java B.java 2>msg &&
-               test_i18ngrep ! fatal msg &&
-               test_i18ngrep ! error msg
+               test_grep ! fatal msg &&
+               test_grep ! error msg
        '
 
        test_expect_success "builtin $p pattern compiles on bare repo with --attr-source" '
@@ -79,8 +79,8 @@ do
                git -C bare.git symbolic-ref HEAD refs/heads/master &&
                test_expect_code 1 git -C bare.git --attr-source=branchA \
                        diff --exit-code HEAD:A.java HEAD:B.java 2>msg &&
-               test_i18ngrep ! fatal msg &&
-               test_i18ngrep ! error msg
+               test_grep ! fatal msg &&
+               test_grep ! error msg
        '
 done
 
@@ -88,7 +88,7 @@ test_expect_success 'last regexp must not be negated' '
        echo "*.java diff=java" >.gitattributes &&
        test_config diff.java.funcname "!static" &&
        test_expect_code 128 git diff --no-index A.java B.java 2>msg &&
-       test_i18ngrep ": Last expression must not be negated:" msg
+       test_grep ": Last expression must not be negated:" msg
 '
 
 test_expect_success 'setup hunk header tests' '
index eacc6694f785acb2e6287dd4c5bce9a5e834a361..c4394a27b56236aeda3c92df03aa19f9d8720190 100755 (executable)
@@ -53,7 +53,7 @@ test_expect_success 'rewrite diff --numstat shows binary changes' '
 test_expect_success 'diff --stat counts binary rewrite as 0 lines' '
        git diff -B --stat --summary >diff &&
        grep "Bin" diff &&
-       test_i18ngrep "0 insertions.*0 deletions" diff &&
+       test_grep "0 insertions.*0 deletions" diff &&
        grep " rewrite file" diff
 '
 
index 70224c3da1494262eb4b2a46c58e001d74f37a9e..7b73462d53d2c12def254e80a9d7c90e19f68794 100755 (executable)
@@ -943,37 +943,37 @@ test_expect_success '--dirstat=future_param,lines,0 should fail loudly' '
        test_must_fail git diff --dirstat=future_param,lines,0 HEAD^..HEAD >actual_diff_dirstat 2>actual_error &&
        test_debug "cat actual_error" &&
        test_must_be_empty actual_diff_dirstat &&
-       test_i18ngrep -q "future_param" actual_error &&
-       test_i18ngrep -q "\--dirstat" actual_error
+       test_grep -q "future_param" actual_error &&
+       test_grep -q "\--dirstat" actual_error
 '
 
 test_expect_success '--dirstat=dummy1,cumulative,2dummy should report both unrecognized parameters' '
        test_must_fail git diff --dirstat=dummy1,cumulative,2dummy HEAD^..HEAD >actual_diff_dirstat 2>actual_error &&
        test_debug "cat actual_error" &&
        test_must_be_empty actual_diff_dirstat &&
-       test_i18ngrep -q "dummy1" actual_error &&
-       test_i18ngrep -q "2dummy" actual_error &&
-       test_i18ngrep -q "\--dirstat" actual_error
+       test_grep -q "dummy1" actual_error &&
+       test_grep -q "2dummy" actual_error &&
+       test_grep -q "\--dirstat" actual_error
 '
 
 test_expect_success 'diff.dirstat=future_param,0,lines should warn, but still work' '
        git -c diff.dirstat=future_param,0,lines diff --dirstat HEAD^..HEAD >actual_diff_dirstat 2>actual_error &&
        test_debug "cat actual_error" &&
        test_cmp expect_diff_dirstat actual_diff_dirstat &&
-       test_i18ngrep -q "future_param" actual_error &&
-       test_i18ngrep -q "diff\\.dirstat" actual_error &&
+       test_grep -q "future_param" actual_error &&
+       test_grep -q "diff\\.dirstat" actual_error &&
 
        git -c diff.dirstat=future_param,0,lines diff --dirstat -M HEAD^..HEAD >actual_diff_dirstat_M 2>actual_error &&
        test_debug "cat actual_error" &&
        test_cmp expect_diff_dirstat_M actual_diff_dirstat_M &&
-       test_i18ngrep -q "future_param" actual_error &&
-       test_i18ngrep -q "diff\\.dirstat" actual_error &&
+       test_grep -q "future_param" actual_error &&
+       test_grep -q "diff\\.dirstat" actual_error &&
 
        git -c diff.dirstat=future_param,0,lines diff --dirstat -C -C HEAD^..HEAD >actual_diff_dirstat_CC 2>actual_error &&
        test_debug "cat actual_error" &&
        test_cmp expect_diff_dirstat_CC actual_diff_dirstat_CC &&
-       test_i18ngrep -q "future_param" actual_error &&
-       test_i18ngrep -q "diff\\.dirstat" actual_error
+       test_grep -q "future_param" actual_error &&
+       test_grep -q "diff\\.dirstat" actual_error
 '
 
 test_expect_success '--shortstat --dirstat should output only one dirstat' '
index 6781cc90786e3eb247b83f107a5407d50ba139f3..5a5d958b96d621b7d98cc4f9379dac38d813d0a9 100755 (executable)
@@ -56,7 +56,7 @@ test_expect_success 'git diff --no-index executed outside repo gives correct err
                export GIT_CEILING_DIRECTORIES &&
                cd non/git &&
                test_must_fail git diff --no-index a 2>actual.err &&
-               test_i18ngrep "usage: git diff --no-index" actual.err
+               test_grep "usage: git diff --no-index" actual.err
        )
 '
 
index 73048d0a52683bed2d56de3b0be77680cecaaf5a..3ea9ae99e04b9304e4dd8014eed9b01795317a31 100755 (executable)
@@ -74,13 +74,13 @@ test_expect_success 'plumbing not affected' '
 test_expect_success 'non-integer config parsing' '
        git config diff.context no &&
        test_must_fail git diff 2>output &&
-       test_i18ngrep "bad numeric config value" output
+       test_grep "bad numeric config value" output
 '
 
 test_expect_success 'negative integer config parsing' '
        git config diff.context -1 &&
        test_must_fail git diff 2>output &&
-       test_i18ngrep "bad config variable" output
+       test_grep "bad config variable" output
 '
 
 test_expect_success '-U0 is valid, so is diff.context=0' '
index 2d650d8f1032ca7c113fa0f48c72719fb08ab245..3356d91cd4a0d595e8d8e126b71902d3e06e7427 100755 (executable)
@@ -68,27 +68,27 @@ test_expect_success 'diff with two merge bases' '
 
 test_expect_success 'diff with no merge bases' '
        test_must_fail git diff br2...br3 2>err &&
-       test_i18ngrep "fatal: br2...br3: no merge base" err
+       test_grep "fatal: br2...br3: no merge base" err
 '
 
 test_expect_success 'diff with too many symmetric differences' '
        test_must_fail git diff br1...main br2...br3 2>err &&
-       test_i18ngrep "usage" err
+       test_grep "usage" err
 '
 
 test_expect_success 'diff with symmetric difference and extraneous arg' '
        test_must_fail git diff main br1...main 2>err &&
-       test_i18ngrep "usage" err
+       test_grep "usage" err
 '
 
 test_expect_success 'diff with two ranges' '
        test_must_fail git diff main br1..main br2..br3 2>err &&
-       test_i18ngrep "usage" err
+       test_grep "usage" err
 '
 
 test_expect_success 'diff with ranges and extra arg' '
        test_must_fail git diff main br1..main commit-D 2>err &&
-       test_i18ngrep "usage" err
+       test_grep "usage" err
 '
 
 test_expect_success 'diff --merge-base with no commits' '
@@ -97,7 +97,7 @@ test_expect_success 'diff --merge-base with no commits' '
 
 test_expect_success 'diff --merge-base with three commits' '
        test_must_fail git diff --merge-base br1 br2 main 2>err &&
-       test_i18ngrep "usage" err
+       test_grep "usage" err
 '
 
 for cmd in diff-index diff
@@ -143,19 +143,19 @@ do
        test_expect_success "$cmd --merge-base with non-commit" '
                git checkout main &&
                test_must_fail git $cmd --merge-base main^{tree} 2>err &&
-               test_i18ngrep "fatal: --merge-base only works with commits" err
+               test_grep "fatal: --merge-base only works with commits" err
        '
 
        test_expect_success "$cmd --merge-base with no merge bases and one commit" '
                git checkout main &&
                test_must_fail git $cmd --merge-base br3 2>err &&
-               test_i18ngrep "fatal: no merge base found" err
+               test_grep "fatal: no merge base found" err
        '
 
        test_expect_success "$cmd --merge-base with multiple merge bases and one commit" '
                git checkout main &&
                test_must_fail git $cmd --merge-base br1 2>err &&
-               test_i18ngrep "fatal: multiple merge bases found" err
+               test_grep "fatal: multiple merge bases found" err
        '
 done
 
@@ -169,28 +169,28 @@ do
 
        test_expect_success "$cmd --merge-base commit and non-commit" '
                test_must_fail git $cmd --merge-base br2 main^{tree} 2>err &&
-               test_i18ngrep "fatal: --merge-base only works with commits" err
+               test_grep "fatal: --merge-base only works with commits" err
        '
 
        test_expect_success "$cmd --merge-base with no merge bases and two commits" '
                test_must_fail git $cmd --merge-base br2 br3 2>err &&
-               test_i18ngrep "fatal: no merge base found" err
+               test_grep "fatal: no merge base found" err
        '
 
        test_expect_success "$cmd --merge-base with multiple merge bases and two commits" '
                test_must_fail git $cmd --merge-base main br1 2>err &&
-               test_i18ngrep "fatal: multiple merge bases found" err
+               test_grep "fatal: multiple merge bases found" err
        '
 done
 
 test_expect_success 'diff-tree --merge-base with one commit' '
        test_must_fail git diff-tree --merge-base main 2>err &&
-       test_i18ngrep "fatal: --merge-base only works with two commits" err
+       test_grep "fatal: --merge-base only works with two commits" err
 '
 
 test_expect_success 'diff --merge-base with range' '
        test_must_fail git diff --merge-base br2..br3 2>err &&
-       test_i18ngrep "fatal: --merge-base does not work with ranges" err
+       test_grep "fatal: --merge-base does not work with ranges" err
 '
 
 test_done
index a22a90d552a8ac8beb61d02b6e373a43951be7a1..cbef0a593fb7ccfded7b9e97735c41dda0ce1cbd 100755 (executable)
@@ -136,7 +136,7 @@ test_expect_success SYMLINKS '--reject removes .rej symlink if it exists' '
 
        ln -s foo file.t.rej &&
        test_must_fail git apply patch --reject 2>err &&
-       test_i18ngrep "Rejected hunk" err &&
+       test_grep "Rejected hunk" err &&
        test_path_is_missing foo &&
        test_path_is_file file.t.rej
 '
index 497b62868d4aa0f81c62178ee9b1a5a108b89c0d..697e86c0ff456028948a769f2b6ccfa66bee2dc2 100755 (executable)
@@ -31,7 +31,7 @@ test_expect_success 'apply git diff with -p2' '
 test_expect_success 'apply with too large -p' '
        cp file1.saved file1 &&
        test_must_fail git apply --stat -p3 patch.file 2>err &&
-       test_i18ngrep "removing 3 leading" err
+       test_grep "removing 3 leading" err
 '
 
 test_expect_success 'apply (-p2) traditional diff with funny filenames' '
@@ -53,7 +53,7 @@ test_expect_success 'apply (-p2) traditional diff with funny filenames' '
 test_expect_success 'apply with too large -p and fancy filename' '
        cp file1.saved file1 &&
        test_must_fail git apply --stat -p3 patch.escaped 2>err &&
-       test_i18ngrep "removing 3 leading" err
+       test_grep "removing 3 leading" err
 '
 
 test_expect_success 'apply (-p2) diff, mode change only' '
index 96965373036a6944971b28cbf5c9f42e2c9abdb2..2089d84f64577b2b0ac6fdd762cfec8bd259c96c 100755 (executable)
@@ -95,19 +95,19 @@ test_expect_success SYMLINKS 'do not follow symbolic link (same input)' '
 
        # same input creates a confusing symbolic link
        test_must_fail git apply patch 2>error-wt &&
-       test_i18ngrep "beyond a symbolic link" error-wt &&
+       test_grep "beyond a symbolic link" error-wt &&
        test_path_is_missing arch/x86_64/dir &&
        test_path_is_missing arch/i386/dir/file &&
 
        test_must_fail git apply --index patch 2>error-ix &&
-       test_i18ngrep "beyond a symbolic link" error-ix &&
+       test_grep "beyond a symbolic link" error-ix &&
        test_path_is_missing arch/x86_64/dir &&
        test_path_is_missing arch/i386/dir/file &&
        test_must_fail git ls-files --error-unmatch arch/x86_64/dir &&
        test_must_fail git ls-files --error-unmatch arch/i386/dir &&
 
        test_must_fail git apply --cached patch 2>error-ct &&
-       test_i18ngrep "beyond a symbolic link" error-ct &&
+       test_grep "beyond a symbolic link" error-ct &&
        test_must_fail git ls-files --error-unmatch arch/x86_64/dir &&
        test_must_fail git ls-files --error-unmatch arch/i386/dir &&
 
@@ -135,23 +135,23 @@ test_expect_success SYMLINKS 'do not follow symbolic link (existing)' '
        git add arch/x86_64/dir &&
 
        test_must_fail git apply add_file.patch 2>error-wt-add &&
-       test_i18ngrep "beyond a symbolic link" error-wt-add &&
+       test_grep "beyond a symbolic link" error-wt-add &&
        test_path_is_missing arch/i386/dir/file &&
 
        mkdir arch/i386/dir &&
        >arch/i386/dir/file &&
        test_must_fail git apply del_file.patch 2>error-wt-del &&
-       test_i18ngrep "beyond a symbolic link" error-wt-del &&
+       test_grep "beyond a symbolic link" error-wt-del &&
        test_path_is_file arch/i386/dir/file &&
        rm arch/i386/dir/file &&
 
        test_must_fail git apply --index add_file.patch 2>error-ix-add &&
-       test_i18ngrep "beyond a symbolic link" error-ix-add &&
+       test_grep "beyond a symbolic link" error-ix-add &&
        test_path_is_missing arch/i386/dir/file &&
        test_must_fail git ls-files --error-unmatch arch/i386/dir &&
 
        test_must_fail git apply --cached add_file.patch 2>error-ct-file &&
-       test_i18ngrep "beyond a symbolic link" error-ct-file &&
+       test_grep "beyond a symbolic link" error-ct-file &&
        test_must_fail git ls-files --error-unmatch arch/i386/dir
 '
 
index a1c7686519ebb1284d818fd3f5615853082abc01..e7a7295f1b687d1ed916e80e431e78c4c67657b7 100755 (executable)
@@ -66,13 +66,13 @@ test_expect_success FILEMODE 'mode update (index only)' '
 test_expect_success FILEMODE 'empty mode is rejected' '
        git reset --hard &&
        test_must_fail git apply patch-empty-mode.txt 2>err &&
-       test_i18ngrep "invalid mode" err
+       test_grep "invalid mode" err
 '
 
 test_expect_success FILEMODE 'bogus mode is rejected' '
        git reset --hard &&
        test_must_fail git apply patch-bogus-mode.txt 2>err &&
-       test_i18ngrep "invalid mode" err
+       test_grep "invalid mode" err
 '
 
 test_expect_success POSIXPERM 'do not use core.sharedRepository for working tree files' '
index 35f1060bc8b47f3f4de129621392c0b23b8f4c18..c21ddb29466ec46b3441313ada2c36b3173067b7 100755 (executable)
@@ -32,9 +32,9 @@ EOF
 
 test_expect_success 'apply diff with inconsistent filenames in headers' '
        test_must_fail git apply bad1.patch 2>err &&
-       test_i18ngrep "inconsistent new filename" err &&
+       test_grep "inconsistent new filename" err &&
        test_must_fail git apply bad2.patch 2>err &&
-       test_i18ngrep "inconsistent old filename" err
+       test_grep "inconsistent old filename" err
 '
 
 test_expect_success 'apply diff with new filename missing from headers' '
@@ -46,7 +46,7 @@ test_expect_success 'apply diff with new filename missing from headers' '
        +1
        EOF
        test_must_fail git apply missing_new_filename.diff 2>err &&
-       test_i18ngrep "lacks filename information" err
+       test_grep "lacks filename information" err
 '
 
 test_expect_success 'apply diff with old filename missing from headers' '
@@ -58,7 +58,7 @@ test_expect_success 'apply diff with old filename missing from headers' '
        -1
        EOF
        test_must_fail git apply missing_old_filename.diff 2>err &&
-       test_i18ngrep "lacks filename information" err
+       test_grep "lacks filename information" err
 '
 
 test_done
index 2935fe1b2d63e758e91711a98d90f942a07e032c..3b125762694e02c9f67dc204f1e182caecead90c 100755 (executable)
@@ -779,7 +779,7 @@ test_expect_success 'am --resolved fails if index has unmerged entries' '
        test_must_fail git am --resolved >err &&
        test_path_is_dir .git/rebase-apply &&
        test_cmp_rev second HEAD &&
-       test_i18ngrep "still have unmerged paths" err
+       test_grep "still have unmerged paths" err
 '
 
 test_expect_success 'am takes patches from a Pine mailbox' '
@@ -913,7 +913,7 @@ test_expect_success 'am newline in subject' '
        test_tick &&
        sed -e "s/second/second \\\n foo/" patch1 >patchnl &&
        git am <patchnl >output.out 2>&1 &&
-       test_i18ngrep "^Applying: second \\\n foo$" output.out
+       test_grep "^Applying: second \\\n foo$" output.out
 '
 
 test_expect_success 'am -q is quiet' '
index 5ed7e228274ed6d283f138c4fe244f9b3d14e2f3..edb38da7010d33315f02a345a076ef803d460a32 100755 (executable)
@@ -46,7 +46,7 @@ do
 
        test_expect_success "am$with3 --skip continue after failed am$with3" '
                test_must_fail git am$with3 --skip >output &&
-               test_i18ngrep "^Applying: 6$" output &&
+               test_grep "^Applying: 6$" output &&
                test_cmp file-2-expect file-2 &&
                test ! -f .git/MERGE_RR
        '
index b7c3861407d026e7064dbab0237bfa709859c462..4add7c775782ff9c3f20a372fa2a076c4651b85b 100755 (executable)
@@ -53,7 +53,7 @@ test_expect_success '--no-quiet overrides --quiet' '
        # Applying side1 will be quiet.
        test_must_fail git am --quiet side[123].eml >out &&
        test_path_is_dir .git/rebase-apply &&
-       test_i18ngrep ! "^Applying: " out &&
+       test_grep ! "^Applying: " out &&
        echo side1 >file &&
        git add file &&
 
index 7025cfdae539c5109df5a33a1e0ec6e7bfeeb688..fb53dddf799c9863ec1df4fe82147ead6dead15a 100755 (executable)
@@ -433,13 +433,13 @@ test_expect_success 'rerere --no-no-rerere-autoupdate' '
        git update-index --index-info <failedmerge &&
        cp file3.conflict file3 &&
        test_must_fail git rerere --no-no-rerere-autoupdate 2>err &&
-       test_i18ngrep [Uu]sage err &&
+       test_grep [Uu]sage err &&
        test_must_fail git update-index --refresh
 '
 
 test_expect_success 'rerere -h' '
        test_must_fail git rerere -h >help &&
-       test_i18ngrep [Uu]sage help
+       test_grep [Uu]sage help
 '
 
 concat_insert () {
index 8e4effebdb71c6d44f9c7d272ad5c3cd44d0b1e8..d7382709fc11055be003751d802f953ed56b6eab 100755 (executable)
@@ -139,7 +139,7 @@ test_expect_success !MINGW 'shortlog can read --format=raw output' '
 
 test_expect_success 'shortlog from non-git directory refuses extra arguments' '
        test_must_fail env GIT_DIR=non-existing git shortlog foo 2>out &&
-       test_i18ngrep "too many arguments" out
+       test_grep "too many arguments" out
 '
 
 test_expect_success 'shortlog should add newline when input line matches wraplen' '
index af4a123cd223ef5a3cdff9c97cf6af35abe53854..708636671a3fd1dd8b63b34335dbe4535d7c58bb 100755 (executable)
@@ -1884,7 +1884,7 @@ test_expect_success '--no-graph does not unset --parents' '
 
 test_expect_success '--reverse and --graph conflict' '
        test_must_fail git log --reverse --graph 2>stderr &&
-       test_i18ngrep "cannot be used together" stderr
+       test_grep "cannot be used together" stderr
 '
 
 test_expect_success '--reverse --graph --no-graph works' '
@@ -1895,7 +1895,7 @@ test_expect_success '--reverse --graph --no-graph works' '
 
 test_expect_success '--show-linear-break and --graph conflict' '
        test_must_fail git log --show-linear-break --graph 2>stderr &&
-       test_i18ngrep "cannot be used together" stderr
+       test_grep "cannot be used together" stderr
 '
 
 test_expect_success '--show-linear-break --graph --no-graph works' '
@@ -1906,7 +1906,7 @@ test_expect_success '--show-linear-break --graph --no-graph works' '
 
 test_expect_success '--no-walk and --graph conflict' '
        test_must_fail git log --no-walk --graph 2>stderr &&
-       test_i18ngrep "cannot be used together" stderr
+       test_grep "cannot be used together" stderr
 '
 
 test_expect_success '--no-walk --graph --no-graph works' '
@@ -1917,8 +1917,8 @@ test_expect_success '--no-walk --graph --no-graph works' '
 
 test_expect_success '--walk-reflogs and --graph conflict' '
        test_must_fail git log --walk-reflogs --graph 2>stderr &&
-       (test_i18ngrep "cannot combine" stderr ||
-               test_i18ngrep "cannot be used together" stderr)
+       (test_grep "cannot combine" stderr ||
+               test_grep "cannot be used together" stderr)
 '
 
 test_expect_success '--walk-reflogs --graph --no-graph works' '
@@ -2252,7 +2252,7 @@ test_expect_success 'log on empty repo fails' '
        git init empty &&
        test_when_finished "rm -rf empty" &&
        test_must_fail git -C empty log 2>stderr &&
-       test_i18ngrep does.not.have.any.commits stderr
+       test_grep does.not.have.any.commits stderr
 '
 
 test_expect_success REFFILES 'log diagnoses bogus HEAD hash' '
@@ -2260,16 +2260,16 @@ test_expect_success REFFILES 'log diagnoses bogus HEAD hash' '
        test_when_finished "rm -rf empty" &&
        echo 1234abcd >empty/.git/refs/heads/main &&
        test_must_fail git -C empty log 2>stderr &&
-       test_i18ngrep broken stderr
+       test_grep broken stderr
 '
 
 test_expect_success REFFILES 'log diagnoses bogus HEAD symref' '
        git init empty &&
        echo "ref: refs/heads/invalid.lock" > empty/.git/HEAD &&
        test_must_fail git -C empty log 2>stderr &&
-       test_i18ngrep broken stderr &&
+       test_grep broken stderr &&
        test_must_fail git -C empty log --default totally-bogus 2>stderr &&
-       test_i18ngrep broken stderr
+       test_grep broken stderr
 '
 
 test_expect_success 'log does not default to HEAD when rev input is given' '
index 2016132f5161743018a09a663224806a93496730..8a88dd7900ca8a63327bf0853403a38a2c2bc5a9 100755 (executable)
@@ -360,7 +360,7 @@ test_expect_success 'mailmap.blob might be the wrong type' '
        cp default.map .mailmap &&
 
        git -c mailmap.blob=HEAD: shortlog HEAD >actual 2>err &&
-       test_i18ngrep "mailmap is not a blob" err &&
+       test_grep "mailmap is not a blob" err &&
        test_cmp expect actual
 '
 
index 2e8f5ad7b822b2c33d1262c5576706f40de52692..806b2809d405f854f1d1f8b0d7156ce2c167e38a 100755 (executable)
@@ -21,7 +21,7 @@ test_expect_success '"git log :/" should not be ambiguous' '
 test_expect_success '"git log :/a" should be ambiguous (applied both rev and worktree)' '
        : >a &&
        test_must_fail git log :/a 2>error &&
-       test_i18ngrep ambiguous error
+       test_grep ambiguous error
 '
 
 test_expect_success '"git log :/a -- " should not be ambiguous' '
@@ -65,7 +65,7 @@ test_expect_success '"git log :/in" should not be ambiguous' '
 
 test_expect_success '"git log :" should be ambiguous' '
        test_must_fail git log : 2>error &&
-       test_i18ngrep ambiguous error
+       test_grep ambiguous error
 '
 
 test_expect_success 'git log -- :' '
@@ -104,7 +104,7 @@ test_expect_success '"git log :(exclude)sub --" must resolve as an object' '
 
 test_expect_success '"git log :(unknown-magic) complains of bogus magic' '
        test_must_fail git log ":(unknown-magic)" 2>error &&
-       test_i18ngrep pathspec.magic error
+       test_grep pathspec.magic error
 '
 
 test_expect_success 'command line pathspec parsing for "git log"' '
index 7f6bb27f141fe786811302f023366e6d15a5aa0e..64e16237335dbb37e3d250f248758017df62943b 100755 (executable)
@@ -57,10 +57,10 @@ test_expect_success setup '
 
 test_expect_success 'usage' '
        test_expect_code 129 git log -S 2>err &&
-       test_i18ngrep "switch.*requires a value" err &&
+       test_grep "switch.*requires a value" err &&
 
        test_expect_code 129 git log -G 2>err &&
-       test_i18ngrep "switch.*requires a value" err &&
+       test_grep "switch.*requires a value" err &&
 
        test_expect_code 128 git log -Gregex -Sstring 2>err &&
        grep "cannot be used together" err &&
index c6540e822fbdc56f068ae1b8d991175303bff038..02d76dca284cbaf1e0a284f0f496051b2fa88f39 100755 (executable)
@@ -19,7 +19,7 @@ test_expect_success 'basic command line parsing' '
 
        # -L requires there is no pathspec
        test_must_fail git log -L1,1:b.c -- b.c 2>error &&
-       test_i18ngrep "cannot be used with pathspec" error &&
+       test_grep "cannot be used with pathspec" error &&
 
        # This would fail because --follow wants a single path, but
        # we may fail due to incompatibility between -L/--follow in
@@ -50,7 +50,7 @@ canned_test_failure () {
 test_bad_opts () {
        test_expect_success "invalid args: $1" "
                test_must_fail git log $1 2>errors &&
-               test_i18ngrep '$2' errors
+               test_grep '$2' errors
        "
 }
 
index 85e90acb0919d6bff674263aff7f2d5140bc0495..e6b59123a3725115ff2ad5eae495d114dc7df801 100755 (executable)
@@ -17,7 +17,7 @@ test_expect_success 'setup' '
 
 test_expect_success 'fsck notices broken commit' '
        test_must_fail git fsck 2>actual &&
-       test_i18ngrep invalid.author actual
+       test_grep invalid.author actual
 '
 
 test_expect_success 'git log with broken author email' '
index 1015273bc827aeeef1e75edbf6c819e04719bde6..92d8c8b651cbe6714d95bdaf9bf91f62fd3bbf91 100755 (executable)
@@ -13,7 +13,7 @@ test_expect_success 'setup' '
 
 test_expect_success 'am with format=flowed' '
        git am <"$TEST_DIRECTORY/t4256/1/patch" 2>stderr &&
-       test_i18ngrep "warning: Patch sent with format=flowed" stderr &&
+       test_grep "warning: Patch sent with format=flowed" stderr &&
        test_cmp "$TEST_DIRECTORY/t4256/1/mailinfo.c" mailinfo.c
 '
 
index 745089479ca3a87e36239e196466aadb0b886848..d402ec18b795c7ab5bc1b53d5eaaa4467e37fdbb 100755 (executable)
@@ -541,7 +541,7 @@ test_expect_success 'make sure index-pack detects the SHA1 collision' '
        (
                cd corrupt &&
                test_must_fail git index-pack -o ../bad.idx ../test-3.pack 2>msg &&
-               test_i18ngrep "SHA1 COLLISION FOUND" msg
+               test_grep "SHA1 COLLISION FOUND" msg
        )
 '
 
@@ -549,7 +549,7 @@ test_expect_success 'make sure index-pack detects the SHA1 collision (large blob
        (
                cd corrupt &&
                test_must_fail git -c core.bigfilethreshold=1 index-pack -o ../bad.idx ../test-3.pack 2>msg &&
-               test_i18ngrep "SHA1 COLLISION FOUND" msg
+               test_grep "SHA1 COLLISION FOUND" msg
        )
 '
 
index f89809be53cf335295e91b91af42de0c1ccf2b5b..d88e6f16910151009e9700dd7d20d0d12f333ddf 100755 (executable)
@@ -282,8 +282,8 @@ test_expect_success 'index-pack --fsck-objects also warns upon missing tagger in
 test_expect_success 'index-pack -v --stdin produces progress for both phases' '
        pack=$(git pack-objects --all pack </dev/null) &&
        GIT_PROGRESS_DELAY=0 git index-pack -v --stdin <pack-$pack.pack 2>err &&
-       test_i18ngrep "Receiving objects" err &&
-       test_i18ngrep "Resolving deltas" err
+       test_grep "Receiving objects" err &&
+       test_grep "Resolving deltas" err
 '
 
 test_expect_success 'too-large packs report the breach' '
index b4df545e5ab602a869cfde5d13090e40c6d003a5..1f1f664871ece6dba57e6bb601ba3771f490e2eb 100755 (executable)
@@ -318,10 +318,10 @@ test_expect_success 'prune: handle HEAD reflog in multiple worktrees' '
 
 test_expect_success 'prune: handle expire option correctly' '
        test_must_fail git prune --expire 2>error &&
-       test_i18ngrep "requires a value" error &&
+       test_grep "requires a value" error &&
 
        test_must_fail git prune --expire=nyah 2>error &&
-       test_i18ngrep "malformed expiration" error &&
+       test_grep "malformed expiration" error &&
 
        git prune --no-expire
 '
index 78c1c6c923d62d1047b654e680d61a2ddf4f2269..d7fd71360e17bd2368562dd7c35644442475bb60 100755 (executable)
@@ -271,7 +271,7 @@ test_bitmap_cases () {
                mv -f $bitmap.tmp $bitmap &&
                git rev-list --use-bitmap-index --count --all >actual 2>stderr &&
                test_cmp expect actual &&
-               test_i18ngrep corrupt.ewah.bitmap stderr
+               test_grep corrupt.ewah.bitmap stderr
        '
 
        test_expect_success 'truncated bitmap fails gracefully (cache)' '
@@ -284,7 +284,7 @@ test_bitmap_cases () {
                mv -f $bitmap.tmp $bitmap &&
                git rev-list --use-bitmap-index --count --all >actual 2>stderr &&
                test_cmp expect actual &&
-               test_i18ngrep corrupted.bitmap.index stderr
+               test_grep corrupted.bitmap.index stderr
        '
 
        # Create a state of history with these properties:
@@ -471,7 +471,7 @@ sane_unset GIT_TEST_PACK_USE_BITMAP_BOUNDARY_TRAVERSAL
 test_expect_success 'incremental repack fails when bitmaps are requested' '
        test_commit more-1 &&
        test_must_fail git repack -d 2>err &&
-       test_i18ngrep "Incremental repacks are incompatible with bitmap" err
+       test_grep "Incremental repacks are incompatible with bitmap" err
 '
 
 test_expect_success 'incremental repack can disable bitmaps' '
@@ -524,7 +524,7 @@ test_expect_success 'truncated bitmap fails gracefully (lookup table)' '
        mv -f $bitmap.tmp $bitmap &&
        git rev-list --use-bitmap-index --count --all >actual 2>stderr &&
        test_cmp expect actual &&
-       test_i18ngrep corrupted.bitmap.index stderr
+       test_grep corrupted.bitmap.index stderr
 '
 
 test_done
index 4df76173a8d774b56f60f12c7ee23372d11b7143..10718142b0afa57109553c50376929172efc84d5 100755 (executable)
@@ -47,7 +47,7 @@ test_expect_success 'exit with correct error on bad input to --stdin-packs' '
        echo doesnotexist >in &&
        test_expect_code 1 git -C full commit-graph write --stdin-packs \
                <in 2>stderr &&
-       test_i18ngrep "error adding pack" stderr
+       test_grep "error adding pack" stderr
 '
 
 test_expect_success 'create commits and repack' '
@@ -67,11 +67,11 @@ test_expect_success 'exit with correct error on bad input to --stdin-commits' '
        # invalid, non-hex OID
        echo HEAD | test_expect_code 1 git -C full commit-graph write \
                --stdin-commits 2>stderr &&
-       test_i18ngrep "unexpected non-hex object ID: HEAD" stderr &&
+       test_grep "unexpected non-hex object ID: HEAD" stderr &&
        # non-existent OID
        echo $ZERO_OID | test_expect_code 1 git -C full commit-graph write \
                --stdin-commits 2>stderr &&
-       test_i18ngrep "invalid object" stderr &&
+       test_grep "invalid object" stderr &&
        # valid commit and tree OID
        git -C full rev-parse HEAD HEAD^{tree} >in &&
        git -C full commit-graph write --stdin-commits <in &&
@@ -143,7 +143,7 @@ test_expect_success 'commit-graph write --stdin-commits force progress on for st
        git -C full rev-parse commits/5 >in &&
        GIT_PROGRESS_DELAY=0 git -C full commit-graph write --stdin-commits \
                --progress <in 2>err &&
-       test_i18ngrep "Collecting commits from input" err
+       test_grep "Collecting commits from input" err
 '
 
 test_expect_success 'commit-graph write --stdin-commits with the --no-progress option' '
@@ -383,13 +383,13 @@ test_expect_success 'warn on improper hash version' '
                cd sha1 &&
                mv ../cg-sha256 .git/objects/info/commit-graph &&
                git log -1 2>err &&
-               test_i18ngrep "commit-graph hash version 2 does not match version 1" err
+               test_grep "commit-graph hash version 2 does not match version 1" err
        ) &&
        (
                cd sha256 &&
                mv ../cg-sha1 .git/objects/info/commit-graph &&
                git log -1 2>err &&
-               test_i18ngrep "commit-graph hash version 1 does not match version 2" err
+               test_grep "commit-graph hash version 1 does not match version 2" err
        )
 '
 
@@ -473,7 +473,7 @@ corrupt_graph_verify() {
        grepstr=$1
        test_must_fail git -C full commit-graph verify 2>test_err &&
        grep -v "^+" test_err >err &&
-       test_i18ngrep "$grepstr" err &&
+       test_grep "$grepstr" err &&
        if test "$2" != "no-copy"
        then
                cp full/$objdir/info/commit-graph commit-graph-pre-write-test
@@ -714,7 +714,7 @@ test_expect_success 'corrupt commit-graph write (broken parent)' '
                git commit-tree -p "$broken" -m "good commit" "$empty" >good &&
                test_must_fail git commit-graph write --stdin-commits \
                        <good 2>test_err &&
-               test_i18ngrep "unable to parse commit" test_err
+               test_grep "unable to parse commit" test_err
        )
 '
 
@@ -735,7 +735,7 @@ test_expect_success 'corrupt commit-graph write (missing tree)' '
                git commit-tree -p "$broken" -m "good" "$tree" >good &&
                test_must_fail git commit-graph write --stdin-commits \
                        <good 2>test_err &&
-               test_i18ngrep "unable to parse commit" test_err
+               test_grep "unable to parse commit" test_err
        )
 '
 
index 1bcc02004d7d1acbce8306bdeb5439f4da689ccb..4b01d78ccb3df1b58401a63f264c54314b0815cd 100755 (executable)
@@ -279,13 +279,13 @@ test_expect_success 'warn on improper hash version' '
                cd sha1 &&
                mv ../mpi-sha256 .git/objects/pack/multi-pack-index &&
                git log -1 2>err &&
-               test_i18ngrep "multi-pack-index hash version 2 does not match version 1" err
+               test_grep "multi-pack-index hash version 2 does not match version 1" err
        ) &&
        (
                cd sha256 &&
                mv ../mpi-sha1 .git/objects/pack/multi-pack-index &&
                git log -1 2>err &&
-               test_i18ngrep "multi-pack-index hash version 1 does not match version 2" err
+               test_grep "multi-pack-index hash version 1 does not match version 2" err
        )
 '
 
@@ -386,7 +386,7 @@ corrupt_midx_and_verify() {
        printf "$DATA" | dd of="$FILE" bs=1 seek="$POS" conv=notrunc &&
        test_must_fail $COMMAND 2>test_err &&
        grep -v "^+" test_err >err &&
-       test_i18ngrep "$GREPSTR" err
+       test_grep "$GREPSTR" err
 }
 
 test_expect_success 'verify bad signature' '
@@ -501,7 +501,7 @@ test_expect_success 'corrupt MIDX is not reused' '
        corrupt_midx_and_verify $MIDX_BYTE_OFFSET "\377" $objdir \
                "incorrect object offset" &&
        git multi-pack-index write 2>err &&
-       test_i18ngrep checksum.mismatch err &&
+       test_grep checksum.mismatch err &&
        git multi-pack-index verify
 '
 
@@ -1031,7 +1031,7 @@ test_expect_success 'load reverse index when missing .idx, .pack' '
 
 test_expect_success 'usage shown without sub-command' '
        test_expect_code 129 git multi-pack-index 2>err &&
-       ! test_i18ngrep "unrecognized subcommand" err
+       ! test_grep "unrecognized subcommand" err
 '
 
 test_expect_success 'complains when run outside of a repository' '
index 36c4141e67b8f0f5aaf87443ab0c00f2bbd67836..a48c00ef50429f546ad72b6b74bc015d9143b491 100755 (executable)
@@ -281,7 +281,7 @@ test_expect_success 'verify hashes along chain, even in shallow' '
                corrupt_file "$base_file" $(test_oid shallow) "\01" &&
                test_must_fail git commit-graph verify --shallow 2>test_err &&
                grep -v "^+" test_err >err &&
-               test_i18ngrep "incorrect checksum" err
+               test_grep "incorrect checksum" err
        )
 '
 
@@ -295,7 +295,7 @@ test_expect_success 'verify --shallow does not check base contents' '
                git commit-graph verify --shallow &&
                test_must_fail git commit-graph verify 2>test_err &&
                grep -v "^+" test_err >err &&
-               test_i18ngrep "incorrect checksum" err
+               test_grep "incorrect checksum" err
        )
 '
 
@@ -308,7 +308,7 @@ test_expect_success 'warn on base graph chunk incorrect' '
                corrupt_file "$base_file" $(test_oid base) "\01" &&
                git commit-graph verify --shallow 2>test_err &&
                grep -v "^+" test_err >err &&
-               test_i18ngrep "commit-graph chain does not match" err
+               test_grep "commit-graph chain does not match" err
        )
 '
 
@@ -319,11 +319,11 @@ test_expect_success 'verify after commit-graph-chain corruption' '
                corrupt_file "$graphdir/commit-graph-chain" 60 "G" &&
                git commit-graph verify 2>test_err &&
                grep -v "^+" test_err >err &&
-               test_i18ngrep "invalid commit-graph chain" err &&
+               test_grep "invalid commit-graph chain" err &&
                corrupt_file "$graphdir/commit-graph-chain" 60 "A" &&
                git commit-graph verify 2>test_err &&
                grep -v "^+" test_err >err &&
-               test_i18ngrep "unable to find all commit-graph files" err
+               test_grep "unable to find all commit-graph files" err
        )
 '
 
@@ -341,7 +341,7 @@ test_expect_success 'verify across alternates' '
                corrupt_file "$tip_file" 100 "\01" &&
                test_must_fail git commit-graph verify --shallow 2>test_err &&
                grep -v "^+" test_err >err &&
-               test_i18ngrep "commit-graph has incorrect fanout value" err
+               test_grep "commit-graph has incorrect fanout value" err
        )
 '
 
@@ -353,7 +353,7 @@ test_expect_success 'add octopus merge' '
        git commit-graph verify --progress 2>err &&
        test_line_count = 1 err &&
        grep "Verifying commits in commit graph: 100% (18/18)" err &&
-       test_i18ngrep ! warning err &&
+       test_grep ! warning err &&
        test_line_count = 3 $graphdir/commit-graph-chain
 '
 
@@ -455,7 +455,7 @@ test_expect_success 'prevent regression for duplicate commits across layers' '
        git init dup &&
        git -C dup commit --allow-empty -m one &&
        git -C dup -c core.commitGraph=false commit-graph write --split=no-merge --reachable 2>err &&
-       test_i18ngrep "attempting to write a commit-graph" err &&
+       test_grep "attempting to write a commit-graph" err &&
        git -C dup commit-graph write --split=no-merge --reachable &&
        git -C dup commit --allow-empty -m two &&
        git -C dup commit-graph write --split=no-merge --reachable &&
index acab31667ad314cbcce59d94032578ed8adbe5b3..2dcf1eeceeb65c4c034cb769f4b1d5fae3b79423 100755 (executable)
@@ -65,7 +65,7 @@ test_expect_success '--stdin-packs is incompatible with --filter' '
                cd stdin-packs &&
                test_must_fail git pack-objects --stdin-packs --stdout \
                        --filter=blob:none </dev/null 2>err &&
-               test_i18ngrep "cannot use --filter with --stdin-packs" err
+               test_grep "cannot use --filter with --stdin-packs" err
        )
 '
 
@@ -74,7 +74,7 @@ test_expect_success '--stdin-packs is incompatible with --revs' '
                cd stdin-packs &&
                test_must_fail git pack-objects --stdin-packs --revs out \
                        </dev/null 2>err &&
-               test_i18ngrep "cannot use internal rev list with --stdin-packs" err
+               test_grep "cannot use internal rev list with --stdin-packs" err
        )
 '
 
index 6dfc7b1c0da421ac143c68005a90caf6a351fb76..510fff38da9cb68c31a63ef00ece3d8f21c79942 100644 (file)
@@ -18,7 +18,7 @@ test_expect_success "proc-receive: not support push options ($PROTOCOL)" '
                HEAD:refs/for/main/topic \
                >out-$test_count 2>&1 &&
        make_user_friendly_and_stable_output <out-$test_count >actual &&
-       test_i18ngrep "fatal: the receiving end does not support push options" \
+       test_grep "fatal: the receiving end does not support push options" \
                actual &&
 
        test_cmp_refs -C "$upstream" <<-EOF
index 768880b40fbdbbb072ed8b362ea638436583e066..9435457de0cd9baff4ddac0a8363b52b0aa6006d 100644 (file)
@@ -19,7 +19,7 @@ test_expect_success "proc-receive: not support push options ($PROTOCOL/porcelain
                HEAD:refs/for/main/topic \
                >out-$test_count 2>&1 &&
        make_user_friendly_and_stable_output <out-$test_count >actual &&
-       test_i18ngrep "fatal: the receiving end does not support push options" \
+       test_grep "fatal: the receiving end does not support push options" \
                actual &&
 
        test_cmp_refs -C "$upstream" <<-EOF
index d18f2823d86e8b94c5331b1087f962469fc91f2c..573e62341fa5862d829cbfa1fb88e0496be22300 100755 (executable)
@@ -403,7 +403,7 @@ test_expect_success 'in_vain not triggered before first ACK' '
        test_commit -C myserver bar &&
 
        git -C myclient fetch --progress origin 2>log &&
-       test_i18ngrep "remote: Total 3 " log
+       test_grep "remote: Total 3 " log
 '
 
 test_expect_success 'in_vain resetted upon ACK' '
@@ -435,7 +435,7 @@ test_expect_success 'in_vain resetted upon ACK' '
        # the client reports that first_anotherbranch_commit is common.
        GIT_TRACE2_EVENT="$(pwd)/trace2" git -C myclient fetch --progress origin main 2>log &&
        grep \"key\":\"total_rounds\",\"value\":\"6\" trace2 &&
-       test_i18ngrep "Total 3 " log
+       test_grep "Total 3 " log
 '
 
 test_expect_success 'fetch in shallow repo unreachable shallow objects' '
@@ -459,7 +459,7 @@ test_expect_success 'fetch creating new shallow root' '
                git fetch --depth=1 --progress 2>actual &&
                # This should fetch only the empty commit, no tree or
                # blob objects
-               test_i18ngrep "remote: Total 1" actual
+               test_grep "remote: Total 1" actual
        )
 '
 
@@ -694,7 +694,7 @@ test_expect_success 'fetch-pack cannot fetch a raw sha1 that is not advertised a
        # unadvertised objects, so restrict this test to v0.
        test_must_fail env GIT_TEST_PROTOCOL_VERSION=0 git -C client fetch-pack ../server \
                $(git -C server rev-parse refs/heads/main^) 2>err &&
-       test_i18ngrep "Server does not allow request for unadvertised object" err
+       test_grep "Server does not allow request for unadvertised object" err
 '
 
 check_prot_path () {
@@ -1010,7 +1010,7 @@ test_expect_success 'filtering by size has no effect if support for it is not ad
        git -C client rev-list --objects --missing=allow-any "$commit" >oids &&
        grep "$blob" oids &&
 
-       test_i18ngrep "filtering not recognized by server" err
+       test_grep "filtering not recognized by server" err
 '
 
 fetch_filter_blob_limit_zero () {
index 0b8ab4afdbe9a0bd0aa304770b6db8f6d303ec9b..138e6778a477650ecbe2dc3e480c5fe83d4bb485 100755 (executable)
@@ -144,7 +144,7 @@ test_expect_success 'setup bogus commit' '
 
 test_expect_success 'fsck with no skipList input' '
        test_must_fail git fsck 2>err &&
-       test_i18ngrep "missingEmail" err
+       test_grep "missingEmail" err
 '
 
 test_expect_success 'setup sorted and unsorted skipLists' '
@@ -169,9 +169,9 @@ test_expect_success 'fsck with unsorted skipList' '
 test_expect_success 'fsck with invalid or bogus skipList input' '
        git -c fsck.skipList=/dev/null -c fsck.missingEmail=ignore fsck &&
        test_must_fail git -c fsck.skipList=does-not-exist -c fsck.missingEmail=ignore fsck 2>err &&
-       test_i18ngrep "could not open.*: does-not-exist" err &&
+       test_grep "could not open.*: does-not-exist" err &&
        test_must_fail git -c fsck.skipList=.git/config -c fsck.missingEmail=ignore fsck 2>err &&
-       test_i18ngrep "invalid object name: \[core\]" err
+       test_grep "invalid object name: \[core\]" err
 '
 
 test_expect_success 'fsck with other accepted skipList input (comments & empty lines)' '
@@ -180,14 +180,14 @@ test_expect_success 'fsck with other accepted skipList input (comments & empty l
        $(test_oid 001)
        EOF
        test_must_fail git -c fsck.skipList=SKIP.with-comment fsck 2>err-with-comment &&
-       test_i18ngrep "missingEmail" err-with-comment &&
+       test_grep "missingEmail" err-with-comment &&
        cat >SKIP.with-empty-line <<-EOF &&
        $(test_oid 001)
 
        $(test_oid 002)
        EOF
        test_must_fail git -c fsck.skipList=SKIP.with-empty-line fsck 2>err-with-empty-line &&
-       test_i18ngrep "missingEmail" err-with-empty-line
+       test_grep "missingEmail" err-with-empty-line
 '
 
 test_expect_success 'fsck no garbage output from comments & empty lines errors' '
@@ -198,7 +198,7 @@ test_expect_success 'fsck no garbage output from comments & empty lines errors'
 test_expect_success 'fsck with invalid abbreviated skipList input' '
        echo $commit | test_copy_bytes 20 >SKIP.abbreviated &&
        test_must_fail git -c fsck.skipList=SKIP.abbreviated fsck 2>err-abbreviated &&
-       test_i18ngrep "^fatal: invalid object name: " err-abbreviated
+       test_grep "^fatal: invalid object name: " err-abbreviated
 '
 
 test_expect_success 'fsck with exhaustive accepted skipList input (various types of comments etc.)' '
@@ -231,10 +231,10 @@ test_expect_success 'push with receive.fsck.skipList' '
        test_must_fail git push --porcelain dst bogus &&
        git --git-dir=dst/.git config receive.fsck.skipList does-not-exist &&
        test_must_fail git push --porcelain dst bogus 2>err &&
-       test_i18ngrep "could not open.*: does-not-exist" err &&
+       test_grep "could not open.*: does-not-exist" err &&
        git --git-dir=dst/.git config receive.fsck.skipList config &&
        test_must_fail git push --porcelain dst bogus 2>err &&
-       test_i18ngrep "invalid object name: \[core\]" err &&
+       test_grep "invalid object name: \[core\]" err &&
 
        git --git-dir=dst/.git config receive.fsck.skipList SKIP &&
        git push --porcelain dst bogus
@@ -260,10 +260,10 @@ test_expect_success 'fetch with fetch.fsck.skipList' '
        test_must_fail git --git-dir=dst/.git fetch "file://$(pwd)" $refspec &&
        git --git-dir=dst/.git config fetch.fsck.skipList does-not-exist &&
        test_must_fail git --git-dir=dst/.git fetch "file://$(pwd)" $refspec 2>err &&
-       test_i18ngrep "could not open.*: does-not-exist" err &&
+       test_grep "could not open.*: does-not-exist" err &&
        git --git-dir=dst/.git config fetch.fsck.skipList dst/.git/config &&
        test_must_fail git --git-dir=dst/.git fetch "file://$(pwd)" $refspec 2>err &&
-       test_i18ngrep "invalid object name: \[core\]" err &&
+       test_grep "invalid object name: \[core\]" err &&
 
        git --git-dir=dst/.git config fetch.fsck.skipList dst/.git/SKIP &&
        git --git-dir=dst/.git fetch "file://$(pwd)" $refspec
@@ -271,7 +271,7 @@ test_expect_success 'fetch with fetch.fsck.skipList' '
 
 test_expect_success 'fsck.<unknownmsg-id> dies' '
        test_must_fail git -c fsck.whatEver=ignore fsck 2>err &&
-       test_i18ngrep "Unhandled message id: whatever" err
+       test_grep "Unhandled message id: whatever" err
 '
 
 test_expect_success 'push with receive.fsck.missingEmail=warn' '
@@ -293,7 +293,7 @@ test_expect_success 'push with receive.fsck.missingEmail=warn' '
                receive.fsck.missingEmail warn &&
        git push --porcelain dst bogus >act 2>&1 &&
        grep "missingEmail" act &&
-       test_i18ngrep "skipping unknown msg id.*whatever" act &&
+       test_grep "skipping unknown msg id.*whatever" act &&
        git --git-dir=dst/.git branch -D bogus &&
        git --git-dir=dst/.git config --add \
                receive.fsck.missingEmail ignore &&
@@ -321,7 +321,7 @@ test_expect_success 'fetch with fetch.fsck.missingEmail=warn' '
                fetch.fsck.missingEmail warn &&
        git --git-dir=dst/.git fetch "file://$(pwd)" $refspec >act 2>&1 &&
        grep "missingEmail" act &&
-       test_i18ngrep "Skipping unknown msg id.*whatever" act &&
+       test_grep "Skipping unknown msg id.*whatever" act &&
        rm -rf dst &&
        git init dst &&
        git --git-dir=dst/.git config fetch.fsckobjects true &&
index 43b7bcd7159c252ff7a2e68dc28fc617649bb658..7789ff12c4b8f80f8ad4385932c342c7c9ae7d00 100755 (executable)
@@ -1075,7 +1075,7 @@ test_expect_success 'remote prune to cause a dangling symref' '
                cd eight &&
                git remote prune origin
        ) >err 2>&1 &&
-       test_i18ngrep "has become dangling" err &&
+       test_grep "has become dangling" err &&
 
        : And the dangling symref will not cause other annoying errors &&
        (
@@ -1087,7 +1087,7 @@ test_expect_success 'remote prune to cause a dangling symref' '
                cd eight &&
                test_must_fail git branch nomore origin
        ) 2>err &&
-       test_i18ngrep "dangling symref" err
+       test_grep "dangling symref" err
 '
 
 test_expect_success 'show empty remote' '
@@ -1419,7 +1419,7 @@ test_expect_success 'extra args: setup' '
 test_extra_arg () {
        test_expect_success "extra args: $*" "
                test_must_fail git remote $* bogus_extra_arg 2>actual &&
-               test_i18ngrep '^usage:' actual
+               test_grep '^usage:' actual
        "
 }
 
@@ -1453,12 +1453,12 @@ test_expect_success 'unqualified <dst> refspec DWIM and advice' '
                                oid=$(git rev-parse some-tag^{$type})
                        fi &&
                        test_must_fail git push origin $oid:dst 2>err &&
-                       test_i18ngrep "error: The destination you" err &&
-                       test_i18ngrep "hint: Did you mean" err &&
+                       test_grep "error: The destination you" err &&
+                       test_grep "hint: Did you mean" err &&
                        test_must_fail git -c advice.pushUnqualifiedRefName=false \
                                push origin $oid:dst 2>err &&
-                       test_i18ngrep "error: The destination you" err &&
-                       test_i18ngrep ! "hint: Did you mean" err ||
+                       test_grep "error: The destination you" err &&
+                       test_grep ! "hint: Did you mean" err ||
                        exit 1
                done
        )
@@ -1479,16 +1479,16 @@ test_expect_success 'refs/remotes/* <src> refspec and unqualified <dst> DWIM and
                git fetch --no-tags two &&
 
                test_must_fail git push origin refs/remotes/two/another:dst 2>err &&
-               test_i18ngrep "error: The destination you" err &&
+               test_grep "error: The destination you" err &&
 
                test_must_fail git push origin refs/remotes/tags-from-two/my-tag:dst-tag 2>err &&
-               test_i18ngrep "error: The destination you" err &&
+               test_grep "error: The destination you" err &&
 
                test_must_fail git push origin refs/remotes/trees-from-two/my-head-tree:dst-tree 2>err &&
-               test_i18ngrep "error: The destination you" err &&
+               test_grep "error: The destination you" err &&
 
                test_must_fail git push origin refs/remotes/blobs-from-two/my-file-blob:dst-blob 2>err &&
-               test_i18ngrep "error: The destination you" err
+               test_grep "error: The destination you" err
        )
 '
 
index 4f289063ced85dc2beabde28788c191a20bf9634..c940521bcc72042c3d25fc2a15bd60db26b87f40 100755 (executable)
@@ -415,9 +415,9 @@ test_expect_success 'fetch uses remote ref names to describe new refs' '
        (
                cd descriptive &&
                git fetch o 2>actual &&
-               test_i18ngrep "new branch.* -> refs/crazyheads/descriptive-branch$" actual &&
-               test_i18ngrep "new tag.* -> descriptive-tag$" actual &&
-               test_i18ngrep "new ref.* -> crazy$" actual
+               test_grep "new branch.* -> refs/crazyheads/descriptive-branch$" actual &&
+               test_grep "new tag.* -> descriptive-tag$" actual &&
+               test_grep "new ref.* -> crazy$" actual
        ) &&
        git checkout main
 '
@@ -1113,7 +1113,7 @@ test_expect_success 'fetching with auto-gc does not lock up' '
                git config gc.autoPackLimit 1 &&
                git config gc.autoDetach false &&
                GIT_ASK_YESNO="$D/askyesno" git fetch --verbose >fetch.out 2>&1 &&
-               test_i18ngrep "Auto packing the repository" fetch.out &&
+               test_grep "Auto packing the repository" fetch.out &&
                ! grep "Should I try again" fetch.out
        )
 '
index 151c76eb09b7831edd803e6cad27dddc4b5489ec..5dbe107ce88f98e75341d5ba3b25ae4f8d10d35f 100755 (executable)
@@ -320,7 +320,7 @@ test_expect_success 'ls-remote works outside repository' '
 test_expect_success 'ls-remote --sort fails gracefully outside repository' '
        # Use a sort key that requires access to the referenced objects.
        nongit test_must_fail git ls-remote --sort=authordate "$TRASH_DIRECTORY" 2>err &&
-       test_i18ngrep "^fatal: not a git repository, but the field '\''authordate'\'' requires access to object data" err
+       test_grep "^fatal: not a git repository, but the field '\''authordate'\'' requires access to object data" err
 '
 
 test_expect_success 'ls-remote patterns work with all protocol versions' '
index 98f034aa77bb243492ea1232549f7d1ec195a152..a95841dc368329286a798982ffac30b7321e02df 100755 (executable)
@@ -200,8 +200,8 @@ test_expect_success 'parallel' '
        test_must_fail env GIT_TRACE="$PWD/trace" \
                git fetch --jobs=2 --multiple one two 2>err &&
        grep "preparing to run up to 2 tasks" trace &&
-       test_i18ngrep "could not fetch .one.*128" err &&
-       test_i18ngrep "could not fetch .two.*128" err
+       test_grep "could not fetch .one.*128" err &&
+       test_grep "could not fetch .two.*128" err
 '
 
 test_expect_success 'git fetch --multiple --jobs=0 picks a default' '
index 87163d77456e5c2738c48dcdde282e2ea7b65a4d..2e7c0e1648f7aa4b879edcbe7cf15cde7583ae65 100755 (executable)
@@ -227,7 +227,7 @@ test_expect_success 'push with negotiation proceeds anyway even if negotiation f
        GIT_TEST_PROTOCOL_VERSION=0 GIT_TRACE2_EVENT="$(pwd)/event" \
                git -c push.negotiate=1 push testrepo refs/heads/main:refs/remotes/origin/main 2>err &&
        grep_wrote 5 event && # 2 commits, 2 trees, 1 blob
-       test_i18ngrep "push negotiation failed" err
+       test_grep "push negotiation failed" err
 '
 
 test_expect_success 'push with negotiation does not attempt to fetch submodules' '
@@ -1267,7 +1267,7 @@ test_expect_success 'fetch exact SHA1' '
                # fetching the hidden object should fail by default
                test_must_fail env GIT_TEST_PROTOCOL_VERSION=0 \
                        git fetch -v ../testrepo $the_commit:refs/heads/copy 2>err &&
-               test_i18ngrep "Server does not allow request for unadvertised object" err &&
+               test_grep "Server does not allow request for unadvertised object" err &&
                test_must_fail git rev-parse --verify refs/heads/copy &&
 
                # the server side can allow it to succeed
@@ -1369,7 +1369,7 @@ do
                                git fetch ../testrepo/.git $SHA1_3 2>err &&
                        # ideally we would insist this be on a "remote error:"
                        # line, but it is racy; see the commit message
-                       test_i18ngrep "not our ref.*$SHA1_3\$" err
+                       test_grep "not our ref.*$SHA1_3\$" err
                )
        '
 done
@@ -1407,7 +1407,7 @@ test_expect_success 'peeled advertisements are not considered ref tips' '
        oid=$(git -C testrepo rev-parse mytag^{commit}) &&
        test_must_fail env GIT_TEST_PROTOCOL_VERSION=0 \
                git fetch testrepo $oid 2>err &&
-       test_i18ngrep "Server does not allow request for unadvertised object" err
+       test_grep "Server does not allow request for unadvertised object" err
 '
 
 test_expect_success 'pushing a specific ref applies remote.$name.push as refmap' '
index 0b72112fb10759bb1d5e9de912ae1b2038df1d00..47534f1062d203a9b823d545740004e2002162ff 100755 (executable)
@@ -31,7 +31,7 @@ test_pull_autostash_fail () {
        echo dirty >new_file &&
        git add new_file &&
        test_must_fail git pull "$@" . copy 2>err &&
-       test_i18ngrep -E "uncommitted changes.|overwritten by merge:" err
+       test_grep -E "uncommitted changes.|overwritten by merge:" err
 }
 
 test_expect_success setup '
@@ -151,7 +151,7 @@ test_expect_success 'fail if wildcard spec does not match any refs' '
        echo file >expect &&
        test_cmp expect file &&
        test_must_fail git pull . "refs/nonexisting1/*:refs/nonexisting2/*" 2>err &&
-       test_i18ngrep "no candidates for merging" err &&
+       test_grep "no candidates for merging" err &&
        test_cmp expect file
 '
 
@@ -164,7 +164,7 @@ test_expect_success 'fail if no branches specified with non-default remote' '
        test_cmp expect file &&
        test_config branch.test.remote origin &&
        test_must_fail git pull test_remote 2>err &&
-       test_i18ngrep "specify a branch on the command line" err &&
+       test_grep "specify a branch on the command line" err &&
        test_cmp expect file
 '
 
@@ -176,7 +176,7 @@ test_expect_success 'fail if not on a branch' '
        echo file >expect &&
        test_cmp expect file &&
        test_must_fail git pull 2>err &&
-       test_i18ngrep "not currently on a branch" err &&
+       test_grep "not currently on a branch" err &&
        test_cmp expect file
 '
 
@@ -189,7 +189,7 @@ test_expect_success 'fail if no configuration for current branch' '
        echo file >expect &&
        test_cmp expect file &&
        test_must_fail git pull 2>err &&
-       test_i18ngrep "no tracking information" err &&
+       test_grep "no tracking information" err &&
        test_cmp expect file
 '
 
@@ -202,7 +202,7 @@ test_expect_success 'pull --all: fail if no configuration for current branch' '
        echo file >expect &&
        test_cmp expect file &&
        test_must_fail git pull --all 2>err &&
-       test_i18ngrep "There is no tracking information" err &&
+       test_grep "There is no tracking information" err &&
        test_cmp expect file
 '
 
@@ -214,7 +214,7 @@ test_expect_success 'fail if upstream branch does not exist' '
        echo file >expect &&
        test_cmp expect file &&
        test_must_fail git pull 2>err &&
-       test_i18ngrep "no such ref was fetched" err &&
+       test_grep "no such ref was fetched" err &&
        test_cmp expect file
 '
 
@@ -248,13 +248,13 @@ test_expect_success 'fail if the index has unresolved entries' '
        test_file_not_empty unmerged &&
        cp file expected &&
        test_must_fail git pull . second 2>err &&
-       test_i18ngrep "Pulling is not possible because you have unmerged files." err &&
+       test_grep "Pulling is not possible because you have unmerged files." err &&
        test_cmp expected file &&
        git add file &&
        git ls-files -u >unmerged &&
        test_must_be_empty unmerged &&
        test_must_fail git pull . second 2>err &&
-       test_i18ngrep "You have not concluded your merge" err &&
+       test_grep "You have not concluded your merge" err &&
        test_cmp expected file
 '
 
@@ -264,7 +264,7 @@ test_expect_success 'fast-forwards working tree if branch head is updated' '
        echo file >expect &&
        test_cmp expect file &&
        git pull . second:third 2>err &&
-       test_i18ngrep "fetch updated the current branch head" err &&
+       test_grep "fetch updated the current branch head" err &&
        echo modified >expect &&
        test_cmp expect file &&
        test_cmp_rev third second
@@ -277,7 +277,7 @@ test_expect_success 'fast-forward fails with conflicting work tree' '
        test_cmp expect file &&
        echo conflict >file &&
        test_must_fail git pull . second:third 2>err &&
-       test_i18ngrep "Cannot fast-forward your working tree" err &&
+       test_grep "Cannot fast-forward your working tree" err &&
        echo conflict >expect &&
        test_cmp expect file &&
        test_cmp_rev third second
@@ -375,7 +375,7 @@ test_expect_success '--rebase with conflicts shows advice' '
        test_tick &&
        git commit -m "Create conflict" seq.txt &&
        test_must_fail git pull --rebase . seq 2>err >out &&
-       test_i18ngrep "Resolve all conflicts manually" err
+       test_grep "Resolve all conflicts manually" err
 '
 
 test_expect_success 'failed --rebase shows advice' '
@@ -389,14 +389,14 @@ test_expect_success 'failed --rebase shows advice' '
        git checkout -f -b fails-to-rebase HEAD^ &&
        test_commit v2-without-cr file "2" file2-lf &&
        test_must_fail git pull --rebase . diverging 2>err >out &&
-       test_i18ngrep "Resolve all conflicts manually" err
+       test_grep "Resolve all conflicts manually" err
 '
 
 test_expect_success '--rebase fails with multiple branches' '
        git reset --hard before-rebase &&
        test_must_fail git pull --rebase . copy main 2>err &&
        test_cmp_rev HEAD before-rebase &&
-       test_i18ngrep "Cannot rebase onto multiple branches" err &&
+       test_grep "Cannot rebase onto multiple branches" err &&
        echo modified >expect &&
        git show HEAD:file >actual &&
        test_cmp expect actual
@@ -520,7 +520,7 @@ test_expect_success 'pull --rebase warns on --verify-signatures' '
        echo new >expect &&
        git show HEAD:file2 >actual &&
        test_cmp expect actual &&
-       test_i18ngrep "ignoring --verify-signatures for rebase" err
+       test_grep "ignoring --verify-signatures for rebase" err
 '
 
 test_expect_success 'pull --rebase does not warn on --no-verify-signatures' '
@@ -530,7 +530,7 @@ test_expect_success 'pull --rebase does not warn on --no-verify-signatures' '
        echo new >expect &&
        git show HEAD:file2 >actual &&
        test_cmp expect actual &&
-       test_i18ngrep ! "verify-signatures" err
+       test_grep ! "verify-signatures" err
 '
 
 # add a feature branch, keep-merge, that is merged into main, so the
@@ -740,7 +740,7 @@ test_expect_success 'pull --rebase fails on unborn branch with staged changes' '
                test_cmp expect actual &&
                git show :staged-file >actual &&
                test_cmp expect actual &&
-               test_i18ngrep "unborn branch with changes added to the index" err
+               test_grep "unborn branch with changes added to the index" err
        )
 '
 
index 264de29c35c11cbe09d31d57629aabaae0423b35..d1f0810e42ee0dfb3538e21ab6b37f4052991541 100755 (executable)
@@ -93,7 +93,7 @@ test_expect_success 'git pull --no-write-fetch-head fails' '
        (cd clonedwfh && git init &&
        test_expect_code 129 git pull --no-write-fetch-head "../parent" >out 2>err &&
        test_must_be_empty out &&
-       test_i18ngrep "no-write-fetch-head" err)
+       test_grep "no-write-fetch-head" err)
 '
 
 test_expect_success 'git pull --force' '
index 1b8d609879504daa09bd62826f223e7eb55bf0d5..1f859ade16251d6e2c61dd84ebb14aa35bc41ca1 100755 (executable)
@@ -87,7 +87,7 @@ test_expect_success TTY 'progress messages go to tty' '
        ensure_fresh_upstream &&
 
        test_terminal git push -u upstream main >out 2>err &&
-       test_i18ngrep "Writing objects" err
+       test_grep "Writing objects" err
 '
 
 test_expect_success 'progress messages do not go to non-tty' '
@@ -95,7 +95,7 @@ test_expect_success 'progress messages do not go to non-tty' '
 
        # skip progress messages, since stderr is non-tty
        git push -u upstream main >out 2>err &&
-       test_i18ngrep ! "Writing objects" err
+       test_grep ! "Writing objects" err
 '
 
 test_expect_success 'progress messages go to non-tty (forced)' '
@@ -103,22 +103,22 @@ test_expect_success 'progress messages go to non-tty (forced)' '
 
        # force progress messages to stderr, even though it is non-tty
        git push -u --progress upstream main >out 2>err &&
-       test_i18ngrep "Writing objects" err
+       test_grep "Writing objects" err
 '
 
 test_expect_success TTY 'push -q suppresses progress' '
        ensure_fresh_upstream &&
 
        test_terminal git push -u -q upstream main >out 2>err &&
-       test_i18ngrep ! "Writing objects" err
+       test_grep ! "Writing objects" err
 '
 
 test_expect_success TTY 'push --no-progress suppresses progress' '
        ensure_fresh_upstream &&
 
        test_terminal git push -u --no-progress upstream main >out 2>err &&
-       test_i18ngrep ! "Unpacking objects" err &&
-       test_i18ngrep ! "Writing objects" err
+       test_grep ! "Unpacking objects" err &&
+       test_grep ! "Writing objects" err
 '
 
 test_expect_success TTY 'quiet push' '
index 284e20fefda861f450d79a3f849cc9ddc2afa65b..14f7eced9a0b43bf8a565e3817f2ef802389a3ba 100755 (executable)
@@ -179,7 +179,7 @@ test_expect_success 'push from/to new branch succeeds with simple if push.autoSe
 test_expect_success '"matching" fails if none match' '
        git init --bare empty &&
        test_must_fail git push empty : 2>actual &&
-       test_i18ngrep "Perhaps you should specify a branch" actual
+       test_grep "Perhaps you should specify a branch" actual
 '
 
 test_expect_success 'push ambiguously named branch with upstream, matching and simple' '
index 7c1460eaa99865306ddfb5254584eba275e17a21..558eedf25a4c9b9f2bac8dca0d69b1b7eaebf381 100755 (executable)
@@ -35,8 +35,8 @@ test_expect_success 'upload-pack fails due to error in pack-objects packing' '
        printf "%04xwant %s\n00000009done\n0000" \
                $(($hexsz + 10)) $head >input &&
        test_must_fail git upload-pack . <input >/dev/null 2>output.err &&
-       test_i18ngrep "unable to read" output.err &&
-       test_i18ngrep "pack-objects died" output.err
+       test_grep "unable to read" output.err &&
+       test_grep "pack-objects died" output.err
 '
 
 test_expect_success 'corrupt repo differently' '
index 302e4cbdba6037e4bfdb165b4033849f1a228846..f3fff557447c3e2e5c46878e7f0415c38d29e970 100755 (executable)
@@ -311,7 +311,7 @@ test_expect_success 'submodule entry pointing at a tag is error' '
        git -C work commit -m "bad commit" &&
        test_when_finished "git -C work reset --hard HEAD^" &&
        test_must_fail git -C work push --recurse-submodules=on-demand ../pub.git main 2>err &&
-       test_i18ngrep "is a tag, not a commit" err
+       test_grep "is a tag, not a commit" err
 '
 
 test_expect_success 'push fails if recurse submodules option passed as yes' '
index 7c0a148e73c9e54003ed0fbad0805fe00f31eed0..b4bc24691c8150e3b0829cb97af1911d13d02504 100755 (executable)
@@ -68,13 +68,13 @@ test_expect_success 'talking with a receiver without push certificate support' '
 test_expect_success 'push --signed fails with a receiver without push certificate support' '
        prepare_dst &&
        test_must_fail git push --signed dst noop ff +noff 2>err &&
-       test_i18ngrep "the receiving end does not support" err
+       test_grep "the receiving end does not support" err
 '
 
 test_expect_success 'push --signed=1 is accepted' '
        prepare_dst &&
        test_must_fail git push --signed=1 dst noop ff +noff 2>err &&
-       test_i18ngrep "the receiving end does not support" err
+       test_grep "the receiving end does not support" err
 '
 
 test_expect_success GPG 'no certificate for a signed push with no update' '
@@ -378,7 +378,7 @@ test_expect_success GPG 'failed atomic push does not execute GPG' '
                        --signed --atomic --porcelain \
                        dst noop ff noff >out 2>err &&
 
-       test_i18ngrep ! "gpg failed to sign" err &&
+       test_grep ! "gpg failed to sign" err &&
        cat >expect <<-EOF &&
        To dst
        =       refs/heads/noop:refs/heads/noop [up to date]
index 91f28c2f783df7391d22bd893e2488e56658515b..23bf69617007d7e97ff3641d3a5783a7ffe0352a 100755 (executable)
@@ -40,7 +40,7 @@ test_expect_success 'fetch conflict: config vs. config' '
                "+refs/heads/branch2:refs/remotes/origin/branch1" && (
                cd ccc &&
                test_must_fail git fetch origin 2>error &&
-               test_i18ngrep "fatal: Cannot fetch both refs/heads/branch1 and refs/heads/branch2 to refs/remotes/origin/branch1" error
+               test_grep "fatal: Cannot fetch both refs/heads/branch1 and refs/heads/branch2 to refs/remotes/origin/branch1" error
        )
 '
 
@@ -67,7 +67,7 @@ test_expect_success 'fetch conflict: arg vs. arg' '
                test_must_fail git fetch origin \
                        refs/heads/*:refs/remotes/origin/* \
                        refs/heads/branch2:refs/remotes/origin/branch1 2>error &&
-               test_i18ngrep "fatal: Cannot fetch both refs/heads/branch1 and refs/heads/branch2 to refs/remotes/origin/branch1" error
+               test_grep "fatal: Cannot fetch both refs/heads/branch1 and refs/heads/branch2 to refs/remotes/origin/branch1" error
        )
 '
 
@@ -78,8 +78,8 @@ test_expect_success 'fetch conflict: criss-cross args' '
                git fetch origin \
                        refs/heads/branch1:refs/remotes/origin/branch2 \
                        refs/heads/branch2:refs/remotes/origin/branch1 2>error &&
-               test_i18ngrep "warning: refs/remotes/origin/branch1 usually tracks refs/heads/branch1, not refs/heads/branch2" error &&
-               test_i18ngrep "warning: refs/remotes/origin/branch2 usually tracks refs/heads/branch2, not refs/heads/branch1" error
+               test_grep "warning: refs/remotes/origin/branch1 usually tracks refs/heads/branch1, not refs/heads/branch2" error &&
+               test_grep "warning: refs/remotes/origin/branch2 usually tracks refs/heads/branch2, not refs/heads/branch1" error
        )
 '
 
index d0211cd8bef450e0149dccd037b0f9e1607ef421..df758e187dfdc2fc869ad5cb747d895a145d5e91 100755 (executable)
@@ -153,7 +153,7 @@ test_expect_success 'push fails for non-fast-forward refs unmatched by remote he
 '
 
 test_expect_success 'push fails for non-fast-forward refs unmatched by remote helper: our output' '
-       test_i18ngrep "Updates were rejected because" \
+       test_grep "Updates were rejected because" \
                output
 '
 
@@ -297,7 +297,7 @@ test_expect_success TTY 'push shows progress when stderr is a tty' '
        cd "$ROOT_PATH"/test_repo_clone &&
        test_commit noisy &&
        test_terminal git push >output 2>&1 &&
-       test_i18ngrep "^Writing objects" output
+       test_grep "^Writing objects" output
 '
 
 test_expect_success TTY 'push --quiet silences status and progress' '
@@ -311,16 +311,16 @@ test_expect_success TTY 'push --no-progress silences progress but not status' '
        cd "$ROOT_PATH"/test_repo_clone &&
        test_commit no-progress &&
        test_terminal git push --no-progress >output 2>&1 &&
-       test_i18ngrep "^To http" output &&
-       test_i18ngrep ! "^Writing objects" output
+       test_grep "^To http" output &&
+       test_grep ! "^Writing objects" output
 '
 
 test_expect_success 'push --progress shows progress to non-tty' '
        cd "$ROOT_PATH"/test_repo_clone &&
        test_commit progress &&
        git push --progress >output 2>&1 &&
-       test_i18ngrep "^To http" output &&
-       test_i18ngrep "^Writing objects" output
+       test_grep "^To http" output &&
+       test_grep "^Writing objects" output
 '
 
 test_expect_success 'http push gives sane defaults to reflog' '
@@ -489,10 +489,10 @@ test_expect_success 'colorize errors/hints' '
                -c color.push=always \
                push origin origin/main^:main 2>act &&
        test_decode_color <act >decoded &&
-       test_i18ngrep "<RED>.*rejected.*<RESET>" decoded &&
-       test_i18ngrep "<RED>error: failed to push some refs" decoded &&
-       test_i18ngrep "<YELLOW>hint: " decoded &&
-       test_i18ngrep ! "^hint: " decoded
+       test_grep "<RED>.*rejected.*<RESET>" decoded &&
+       test_grep "<RED>error: failed to push some refs" decoded &&
+       test_grep "<YELLOW>hint: " decoded &&
+       test_grep ! "^hint: " decoded
 '
 
 test_expect_success 'report error server does not provide ref status' '
index a158e7d2c011f464c90ff69e7eda1c6ae0669ece..fb13549da7f305b88da0f0bdcf3d791907e96a08 100755 (executable)
@@ -252,7 +252,7 @@ test_expect_success 'push option denied properly by http server' '
        mk_http_pair false &&
        test_commit -C test_http_clone one &&
        test_must_fail git -C test_http_clone push --push-option=asdf origin main 2>actual &&
-       test_i18ngrep "the receiving end does not support push options" actual &&
+       test_grep "the receiving end does not support push options" actual &&
        git -C test_http_clone push origin main
 '
 
index 8f182a3cbfe73cbcf1d61cbf96c14b78cf25a168..e444b30bf6156817fa624a9a3c9ed7127e61c3e1 100755 (executable)
@@ -376,7 +376,7 @@ test_expect_success 'git client send an empty Accept-Language' '
 
 test_expect_success 'remote-http complains cleanly about malformed urls' '
        test_must_fail git remote-http http::/example.com/repo.git 2>stderr &&
-       test_i18ngrep "url has no scheme" stderr
+       test_grep "url has no scheme" stderr
 '
 
 # NEEDSWORK: Writing commands to git-remote-curl can race against the latter
@@ -385,7 +385,7 @@ test_expect_success 'remote-http complains cleanly about malformed urls' '
 test_expect_success 'remote-http complains cleanly about empty scheme' '
        test_must_fail ok=sigpipe git ls-remote \
                http::${HTTPD_URL#http}/dumb/repo.git 2>stderr &&
-       test_i18ngrep "url has no scheme" stderr
+       test_grep "url has no scheme" stderr
 '
 
 test_expect_success 'redirects can be forbidden/allowed' '
@@ -397,7 +397,7 @@ test_expect_success 'redirects can be forbidden/allowed' '
 
 test_expect_success 'redirects are reported to stderr' '
        # just look for a snippet of the redirected-to URL
-       test_i18ngrep /dumb/ stderr
+       test_grep /dumb/ stderr
 '
 
 test_expect_success 'non-initial redirects can be forbidden' '
@@ -466,7 +466,7 @@ test_expect_success 'can redirect through non-"info/refs?service=git-upload-pack
 
 test_expect_success 'print HTTP error when any intermediate redirect throws error' '
        test_must_fail git clone "$HTTPD_URL/redir-to/502" 2> stderr &&
-       test_i18ngrep "unable to access.*/redir-to/502" stderr
+       test_grep "unable to access.*/redir-to/502" stderr
 '
 
 test_expect_success 'fetching via http alternates works' '
index 21b7767cbd313b48a13888c28f5e757e59b394db..8a41adf1e1f078712a423b0f41541afb1b5f045d 100755 (executable)
@@ -275,7 +275,7 @@ test_expect_success 'GIT_SMART_HTTP can disable smart http' '
 
 test_expect_success 'invalid Content-Type rejected' '
        test_must_fail git clone $HTTPD_URL/broken_smart/repo.git 2>actual &&
-       test_i18ngrep "not valid:" actual
+       test_grep "not valid:" actual
 '
 
 test_expect_success 'create namespaced refs' '
@@ -558,7 +558,7 @@ test_expect_success 'GIT_TRACE_CURL_NO_DATA prevents data from being traced' '
 
 test_expect_success 'server-side error detected' '
        test_must_fail git clone $HTTPD_URL/error_smart/repo.git 2>actual &&
-       test_i18ngrep "server-side error" actual
+       test_grep "server-side error" actual
 '
 
 test_expect_success 'http auth remembers successful credentials' '
index 1131503b760c48cbb6f6b0d10a5027d76ec40db5..f9a9bf950328e805ffb27c743b8d85f61510eec8 100755 (executable)
@@ -10,9 +10,9 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 start_git_daemon
 
 check_verbose_connect () {
-       test_i18ngrep -F "Looking up 127.0.0.1 ..." stderr &&
-       test_i18ngrep -F "Connecting to 127.0.0.1 (port " stderr &&
-       test_i18ngrep -F "done." stderr
+       test_grep -F "Looking up 127.0.0.1 ..." stderr &&
+       test_grep -F "Connecting to 127.0.0.1 (port " stderr &&
+       test_grep -F "done." stderr
 }
 
 test_expect_success 'setup repository' '
@@ -108,7 +108,7 @@ test_expect_success 'fetch notices corrupt idx' '
 
 test_expect_success 'client refuses to ask for repo with newline' '
        test_must_fail git clone "$GIT_DAEMON_URL/repo$LF.git" dst 2>stderr &&
-       test_i18ngrep newline.is.forbidden stderr
+       test_grep newline.is.forbidden stderr
 '
 
 test_remote_error()
@@ -148,7 +148,7 @@ test_remote_error()
        fi
 
        test_must_fail git "$cmd" "$GIT_DAEMON_URL/$repo" "$@" 2>output &&
-       test_i18ngrep "fatal: remote error: $msg: /$repo" output &&
+       test_grep "fatal: remote error: $msg: /$repo" output &&
        ret=$?
        chmod +x "$GIT_DAEMON_DOCUMENT_ROOT_PATH/repo.git"
        (exit $ret)
index 4e917bf87d2d4213019797ffa4d12215ffeb05f5..51744521f789b654ffbcee73afba47a0ecbe7e35 100755 (executable)
@@ -177,7 +177,7 @@ test_expect_success 'pull --rebase --recurse-submodules fails if both sides reco
        # submodule itself, but the merge strategy in submodules
        # does not support rebase:
        test_must_fail git -C super pull --rebase --recurse-submodules 2>err &&
-       test_i18ngrep "locally recorded submodule modifications" err
+       test_grep "locally recorded submodule modifications" err
 '
 
 test_expect_success 'pull --rebase --recurse-submodules (no submodule changes, no fork-point)' '
index 1221ac05978e2c5cff0675f7e46e488361908098..ab05f38a99823968a6657ac2579c404560118044 100755 (executable)
@@ -47,46 +47,46 @@ test_expect_success GPG 'create repositories with signed commits' '
 test_expect_success GPG 'pull unsigned commit with --verify-signatures' '
        test_when_finished "git reset --hard && git checkout initial" &&
        test_must_fail git pull --ff-only --verify-signatures unsigned 2>pullerror &&
-       test_i18ngrep "does not have a GPG signature" pullerror
+       test_grep "does not have a GPG signature" pullerror
 '
 
 test_expect_success GPG 'pull commit with bad signature with --verify-signatures' '
        test_when_finished "git reset --hard && git checkout initial" &&
        test_must_fail git pull --ff-only --verify-signatures bad 2>pullerror &&
-       test_i18ngrep "has a bad GPG signature" pullerror
+       test_grep "has a bad GPG signature" pullerror
 '
 
 test_expect_success GPG 'pull commit with untrusted signature with --verify-signatures' '
        test_when_finished "git reset --hard && git checkout initial" &&
        test_must_fail git pull --ff-only --verify-signatures untrusted 2>pullerror &&
-       test_i18ngrep "has an untrusted GPG signature" pullerror
+       test_grep "has an untrusted GPG signature" pullerror
 '
 
 test_expect_success GPG 'pull commit with untrusted signature with --verify-signatures and minTrustLevel=ultimate' '
        test_when_finished "git reset --hard && git checkout initial" &&
        test_config gpg.minTrustLevel ultimate &&
        test_must_fail git pull --ff-only --verify-signatures untrusted 2>pullerror &&
-       test_i18ngrep "has an untrusted GPG signature" pullerror
+       test_grep "has an untrusted GPG signature" pullerror
 '
 
 test_expect_success GPG 'pull commit with untrusted signature with --verify-signatures and minTrustLevel=marginal' '
        test_when_finished "git reset --hard && git checkout initial" &&
        test_config gpg.minTrustLevel marginal &&
        test_must_fail git pull --ff-only --verify-signatures untrusted 2>pullerror &&
-       test_i18ngrep "has an untrusted GPG signature" pullerror
+       test_grep "has an untrusted GPG signature" pullerror
 '
 
 test_expect_success GPG 'pull commit with untrusted signature with --verify-signatures and minTrustLevel=undefined' '
        test_when_finished "git reset --hard && git checkout initial" &&
        test_config gpg.minTrustLevel undefined &&
        git pull --ff-only --verify-signatures untrusted >pulloutput &&
-       test_i18ngrep "has a good GPG signature" pulloutput
+       test_grep "has a good GPG signature" pulloutput
 '
 
 test_expect_success GPG 'pull signed commit with --verify-signatures' '
        test_when_finished "git reset --hard && git checkout initial" &&
        git pull --verify-signatures signed >pulloutput &&
-       test_i18ngrep "has a good GPG signature" pulloutput
+       test_grep "has a good GPG signature" pulloutput
 '
 
 test_expect_success GPG 'pull commit with bad signature without verification' '
@@ -106,7 +106,7 @@ test_expect_success GPG 'pull unsigned commit into unborn branch' '
        git init empty-repo &&
        test_must_fail \
                git -C empty-repo pull --verify-signatures ..  2>pullerror &&
-       test_i18ngrep "does not have a GPG signature" pullerror
+       test_grep "does not have a GPG signature" pullerror
 '
 
 test_expect_success GPG 'pull commit into unborn branch with bad signature and --verify-signatures' '
@@ -114,7 +114,7 @@ test_expect_success GPG 'pull commit into unborn branch with bad signature and -
        git init empty-repo &&
        test_must_fail \
                git -C empty-repo pull --ff-only --verify-signatures ../bad 2>pullerror &&
-       test_i18ngrep "has a bad GPG signature" pullerror
+       test_grep "has a bad GPG signature" pullerror
 '
 
 test_expect_success GPG 'pull commit into unborn branch with untrusted signature and --verify-signatures' '
@@ -122,7 +122,7 @@ test_expect_success GPG 'pull commit into unborn branch with untrusted signature
        git init empty-repo &&
        test_must_fail \
                git -C empty-repo pull --ff-only --verify-signatures ../untrusted 2>pullerror &&
-       test_i18ngrep "has an untrusted GPG signature" pullerror
+       test_grep "has an untrusted GPG signature" pullerror
 '
 
 test_expect_success GPG 'pull commit into unborn branch with untrusted signature and --verify-signatures and minTrustLevel=ultimate' '
@@ -131,7 +131,7 @@ test_expect_success GPG 'pull commit into unborn branch with untrusted signature
        test_config_global gpg.minTrustLevel ultimate &&
        test_must_fail \
                git -C empty-repo pull --ff-only --verify-signatures ../untrusted 2>pullerror &&
-       test_i18ngrep "has an untrusted GPG signature" pullerror
+       test_grep "has an untrusted GPG signature" pullerror
 '
 
 test_expect_success GPG 'pull commit into unborn branch with untrusted signature and --verify-signatures and minTrustLevel=marginal' '
@@ -140,7 +140,7 @@ test_expect_success GPG 'pull commit into unborn branch with untrusted signature
        test_config_global gpg.minTrustLevel marginal &&
        test_must_fail \
                git -C empty-repo pull --ff-only --verify-signatures ../untrusted 2>pullerror &&
-       test_i18ngrep "has an untrusted GPG signature" pullerror
+       test_grep "has an untrusted GPG signature" pullerror
 '
 
 test_expect_success GPG 'pull commit into unborn branch with untrusted signature and --verify-signatures and minTrustLevel=undefined' '
@@ -148,7 +148,7 @@ test_expect_success GPG 'pull commit into unborn branch with untrusted signature
        git init empty-repo &&
        test_config_global gpg.minTrustLevel undefined &&
        git -C empty-repo pull --ff-only --verify-signatures ../untrusted >pulloutput &&
-       test_i18ngrep "has a good GPG signature" pulloutput
+       test_grep "has a good GPG signature" pulloutput
 '
 
 test_done
index 90e6dcb9a7f22609eba39779d0a279a5e18c9799..a9b06b22510ebe58c0faafd4ac05830c1bf64f3a 100755 (executable)
@@ -281,12 +281,12 @@ test_expect_success '--no-show-forced-updates' '
        (
                cd forced-update-clone &&
                git fetch --show-forced-updates origin 2>output &&
-               test_i18ngrep "(forced update)" output
+               test_grep "(forced update)" output
        ) &&
        (
                cd no-forced-update-clone &&
                git fetch --no-show-forced-updates origin 2>output &&
-               test_i18ngrep ! "(forced update)" output
+               test_grep ! "(forced update)" output
        )
 '
 
index cd7604fff93a55ff9bb9e4bcae905c4386f0374a..d7537a162b21fe09ac48cab3ac3d937c188ec081 100755 (executable)
@@ -75,7 +75,7 @@ test_expect_success push '
 test_expect_success MINGW 'remote nick cannot contain backslashes' '
        BACKSLASHED="$(winpwd | tr / \\\\)" &&
        git ls-remote "$BACKSLASHED" 2>err &&
-       test_i18ngrep ! "unable to access" err
+       test_grep ! "unable to access" err
 '
 
 test_expect_success 'unc alternates' '
index b7d5551262c7b715fbeea48f0260906f35a64a10..47eae641f018055f2200ef6e2581d8ac60364cdb 100755 (executable)
@@ -630,7 +630,7 @@ test_expect_success 'clone on case-insensitive fs' '
 test_expect_success CASE_INSENSITIVE_FS 'colliding file detection' '
        grep X icasefs/warning &&
        grep x icasefs/warning &&
-       test_i18ngrep "the following paths have collided" icasefs/warning
+       test_grep "the following paths have collided" icasefs/warning
 '
 
 test_expect_success 'clone with GIT_DEFAULT_HASH' '
@@ -696,7 +696,7 @@ test_expect_success 'partial clone: warn if server does not support object filte
 
        git clone --filter=blob:limit=0 "file://$(pwd)/server" client 2> err &&
 
-       test_i18ngrep "filtering not recognized by server" err
+       test_grep "filtering not recognized by server" err
 '
 
 test_expect_success 'batch missing blob request during checkout' '
@@ -767,7 +767,7 @@ test_expect_success 'reject cloning shallow repository using HTTP' '
        test_when_finished "rm -rf repo" &&
        git clone --bare --no-local --depth=1 src "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
        test_must_fail git -c protocol.version=2 clone --reject-shallow $HTTPD_URL/smart/repo.git repo 2>err &&
-       test_i18ngrep -e "source repository is shallow, reject to clone." err &&
+       test_grep -e "source repository is shallow, reject to clone." err &&
 
        git clone --no-reject-shallow $HTTPD_URL/smart/repo.git repo
 '
index 9845fc04d59809acc17dbe7c8a122c93b84d4f75..9b32db8478ab77ff118a1df382a97d1f4064c2a8 100755 (executable)
@@ -317,7 +317,7 @@ test_expect_success SYMLINKS 'clone repo with symlinked or unknown files at obje
        for option in --local --no-hardlinks --dissociate
        do
                test_must_fail git clone $option T T$option 2>err || return 1 &&
-               test_i18ngrep "symlink.*exists" err || return 1
+               test_grep "symlink.*exists" err || return 1
        done &&
 
        # But `--shared` clones should still work, even when specifying
index 5890319b97b8269ee2957315a3670a7c0cfa8caf..fc4bbd9daf4fd3bf1777699f05af9ca39ac5a954 100755 (executable)
@@ -39,7 +39,7 @@ test_expect_success 'clone -o' '
 test_expect_success 'rejects invalid -o/--origin' '
 
        test_must_fail git clone -o "bad...name" parent clone-bad-name 2>err &&
-       test_i18ngrep "'\''bad...name'\'' is not a valid remote name" err
+       test_grep "'\''bad...name'\'' is not a valid remote name" err
 
 '
 
@@ -56,7 +56,7 @@ test_expect_success 'disallows --bare with --separate-git-dir' '
 
        test_must_fail git clone --bare --separate-git-dir dot-git-destiation parent clone-bare-sgd 2>err &&
        test_debug "cat err" &&
-       test_i18ngrep -e "options .--bare. and .--separate-git-dir. cannot be used together" err
+       test_grep -e "options .--bare. and .--separate-git-dir. cannot be used together" err
 
 '
 
@@ -71,7 +71,7 @@ test_expect_success 'disallows --bundle-uri with shallow options' '
 test_expect_success 'reject cloning shallow repository' '
        test_when_finished "rm -rf repo" &&
        test_must_fail git clone --reject-shallow shallow-repo out 2>err &&
-       test_i18ngrep -e "source repository is shallow, reject to clone." err &&
+       test_grep -e "source repository is shallow, reject to clone." err &&
 
        git clone --no-reject-shallow shallow-repo repo
 '
@@ -79,7 +79,7 @@ test_expect_success 'reject cloning shallow repository' '
 test_expect_success 'reject cloning non-local shallow repository' '
        test_when_finished "rm -rf repo" &&
        test_must_fail git clone --reject-shallow --no-local shallow-repo out 2>err &&
-       test_i18ngrep -e "source repository is shallow, reject to clone." err &&
+       test_grep -e "source repository is shallow, reject to clone." err &&
 
        git clone --no-reject-shallow --no-local shallow-repo repo
 '
@@ -149,7 +149,7 @@ test_expect_success 'redirected clone does not show progress' '
 
        git clone "file://$(pwd)/parent" clone-redirected >out 2>err &&
        ! grep % err &&
-       test_i18ngrep ! "Checking connectivity" err
+       test_grep ! "Checking connectivity" err
 
 '
 
index 51705aa86a172edfcdf9f41d9640f93c8667ebb9..0d1e92d9963554323a0e9a3891e43eeb263b1aff 100755 (executable)
@@ -24,7 +24,7 @@ test_expect_success 'setup' '
 test_expect_success '"verify" needs a worktree' '
        git bundle create tip.bundle -1 main &&
        nongit test_must_fail git bundle verify ../tip.bundle 2>err &&
-       test_i18ngrep "need a repository" err
+       test_grep "need a repository" err
 '
 
 test_expect_success 'annotated tags can be excluded by rev-list options' '
@@ -166,7 +166,7 @@ test_expect_success 'git bundle v3 rejects unknown capabilities' '
        @unknown=silly
        EOF
        test_must_fail git bundle verify new 2>output &&
-       test_i18ngrep "unknown capability .unknown=silly." output
+       test_grep "unknown capability .unknown=silly." output
 '
 
 test_done
index 727caff443368365ca281373ad730de8f3987ab1..298d4befab84f2c4476c46562167a0e0a09b3981 100755 (executable)
@@ -103,7 +103,7 @@ test_expect_success 'set up shallow repository' '
 test_expect_success 'clone.rejectshallow=true should reject cloning shallow repo' '
        test_when_finished "rm -rf out" &&
        test_must_fail git -c clone.rejectshallow=true clone --no-local shallow-repo out 2>err &&
-       test_i18ngrep -e "source repository is shallow, reject to clone." err &&
+       test_grep -e "source repository is shallow, reject to clone." err &&
 
        git -c clone.rejectshallow=false clone --no-local shallow-repo out
 '
@@ -111,7 +111,7 @@ test_expect_success 'clone.rejectshallow=true should reject cloning shallow repo
 test_expect_success 'option --[no-]reject-shallow override clone.rejectshallow config' '
        test_when_finished "rm -rf out" &&
        test_must_fail git -c clone.rejectshallow=false clone --reject-shallow --no-local shallow-repo out 2>err &&
-       test_i18ngrep -e "source repository is shallow, reject to clone." err &&
+       test_grep -e "source repository is shallow, reject to clone." err &&
 
        git -c clone.rejectshallow=true clone --no-reject-shallow --no-local shallow-repo out
 '
index 8759fc285337e2bbc43fc746aa7c97bdc91a5b91..2da7291e37997a8b967788ee65c628ecf343b082 100755 (executable)
@@ -353,14 +353,14 @@ test_expect_success 'upload-pack complains of bogus filter config' '
        test_must_fail git \
                -c uploadpackfilter.tree.maxdepth \
                upload-pack . >/dev/null 2>err &&
-       test_i18ngrep "unable to parse.*tree.maxdepth" err
+       test_grep "unable to parse.*tree.maxdepth" err
 '
 
 test_expect_success 'upload-pack fails banned object filters' '
        test_config -C srv.bare uploadpackfilter.blob:none.allow false &&
        test_must_fail ok=sigpipe git clone --no-checkout --filter=blob:none \
                "file://$(pwd)/srv.bare" pc3 2>err &&
-       test_i18ngrep "filter '\''blob:none'\'' not supported" err
+       test_grep "filter '\''blob:none'\'' not supported" err
 '
 
 test_expect_success 'upload-pack fails banned combine object filters' '
@@ -370,14 +370,14 @@ test_expect_success 'upload-pack fails banned combine object filters' '
        test_config -C srv.bare uploadpackfilter.blob:none.allow false &&
        test_must_fail ok=sigpipe git clone --no-checkout --filter=tree:1 \
                --filter=blob:none "file://$(pwd)/srv.bare" pc3 2>err &&
-       test_i18ngrep "filter '\''blob:none'\'' not supported" err
+       test_grep "filter '\''blob:none'\'' not supported" err
 '
 
 test_expect_success 'upload-pack fails banned object filters with fallback' '
        test_config -C srv.bare uploadpackfilter.allow false &&
        test_must_fail ok=sigpipe git clone --no-checkout --filter=blob:none \
                "file://$(pwd)/srv.bare" pc3 2>err &&
-       test_i18ngrep "filter '\''blob:none'\'' not supported" err
+       test_grep "filter '\''blob:none'\'' not supported" err
 '
 
 test_expect_success 'upload-pack limits tree depth filters' '
@@ -386,7 +386,7 @@ test_expect_success 'upload-pack limits tree depth filters' '
        test_config -C srv.bare uploadpackfilter.tree.maxDepth 0 &&
        test_must_fail ok=sigpipe git clone --no-checkout --filter=tree:1 \
                "file://$(pwd)/srv.bare" pc3 2>err &&
-       test_i18ngrep "tree filter allows max depth 0, but got 1" err &&
+       test_grep "tree filter allows max depth 0, but got 1" err &&
 
        git clone --no-checkout --filter=tree:0 "file://$(pwd)/srv.bare" pc4 &&
 
@@ -394,7 +394,7 @@ test_expect_success 'upload-pack limits tree depth filters' '
        git clone --no-checkout --filter=tree:5 "file://$(pwd)/srv.bare" pc5 &&
        test_must_fail ok=sigpipe git clone --no-checkout --filter=tree:6 \
                "file://$(pwd)/srv.bare" pc6 2>err &&
-       test_i18ngrep "tree filter allows max depth 5, but got 6" err
+       test_grep "tree filter allows max depth 5, but got 6" err
 '
 
 test_expect_success 'partial clone fetches blobs pointed to by refs even if normally filtered out' '
@@ -459,11 +459,11 @@ test_expect_success 'partial clone with unresolvable sparse filter fails cleanly
        test_must_fail git clone --no-local --bare \
                                 --filter=sparse:oid=main:no-such-name \
                                 sparse-src dst.git 2>err &&
-       test_i18ngrep "unable to access sparse blob in .main:no-such-name" err &&
+       test_grep "unable to access sparse blob in .main:no-such-name" err &&
        test_must_fail git clone --no-local --bare \
                                 --filter=sparse:oid=main \
                                 sparse-src dst.git 2>err &&
-       test_i18ngrep "unable to parse sparse filter data in" err
+       test_grep "unable to parse sparse filter data in" err
 '
 
 setup_triangle () {
@@ -493,8 +493,8 @@ setup_triangle () {
        TREE_HASH=$(git -C server rev-parse HEAD~1^{tree}) &&
        git -C promisor-remote fetch --keep "file://$(pwd)/server" "$TREE_HASH" &&
        git -C promisor-remote count-objects -v >object-count &&
-       test_i18ngrep "count: 0" object-count &&
-       test_i18ngrep "in-pack: 2" object-count &&
+       test_grep "count: 0" object-count &&
+       test_grep "in-pack: 2" object-count &&
 
        # Set it as the promisor remote of client. Thus, whenever
        # the client lazy fetches, the lazy fetch will succeed only if it is
@@ -748,7 +748,7 @@ test_expect_success 'upon cloning, check that all refs point to objects' '
        test_must_fail git -c protocol.version=2 clone \
                --filter=blob:none $HTTPD_URL/one_time_perl/server repo 2>err &&
 
-       test_i18ngrep "did not send all necessary objects" err &&
+       test_grep "did not send all necessary objects" err &&
 
        # Ensure that the one-time-perl script was used.
        ! test -e "$HTTPD_ROOT_PATH/one-time-perl"
index f21e5e9d33d199368df3aeb5ebae64e6b20cc5e3..3591bc2417119c75181cc1884ea9e48a7a87646a 100755 (executable)
@@ -52,7 +52,7 @@ test_expect_success 'request invalid capability' '
        0000
        EOF
        test_must_fail test-tool serve-v2 --stateless-rpc 2>err <in &&
-       test_i18ngrep "unknown capability" err
+       test_grep "unknown capability" err
 '
 
 test_expect_success 'request with no command' '
@@ -62,7 +62,7 @@ test_expect_success 'request with no command' '
        0000
        EOF
        test_must_fail test-tool serve-v2 --stateless-rpc 2>err <in &&
-       test_i18ngrep "no command requested" err
+       test_grep "no command requested" err
 '
 
 test_expect_success 'request invalid command' '
@@ -73,7 +73,7 @@ test_expect_success 'request invalid command' '
        0000
        EOF
        test_must_fail test-tool serve-v2 --stateless-rpc 2>err <in &&
-       test_i18ngrep "invalid command" err
+       test_grep "invalid command" err
 '
 
 test_expect_success 'request capability as command' '
@@ -115,7 +115,7 @@ test_expect_success 'wrong object-format' '
        0000
        EOF
        test_must_fail test-tool serve-v2 --stateless-rpc 2>err <in &&
-       test_i18ngrep "mismatched object format" err
+       test_grep "mismatched object format" err
 '
 
 # Test the basics of ls-refs
index 6af5c2062fd16cc8c5549ee888d952966d41c4a3..3c0c6047d5778cb478fa7b8a4903f4457107f30e 100755 (executable)
@@ -189,8 +189,8 @@ test_expect_success 'warn if using server-option with ls-remote with legacy prot
        test_must_fail env GIT_TEST_PROTOCOL_VERSION=0 git -c protocol.version=0 \
                ls-remote -o hello -o world "file://$(pwd)/file_parent" main 2>err &&
 
-       test_i18ngrep "see protocol.version in" err &&
-       test_i18ngrep "server options require protocol version 2 or later" err
+       test_grep "see protocol.version in" err &&
+       test_grep "server options require protocol version 2 or later" err
 '
 
 test_expect_success 'clone with file:// using protocol v2' '
@@ -377,8 +377,8 @@ test_expect_success 'warn if using server-option with fetch with legacy protocol
        test_must_fail env GIT_TEST_PROTOCOL_VERSION=0 git -C temp_child -c protocol.version=0 \
                fetch -o hello -o world "file://$(pwd)/file_parent" main 2>err &&
 
-       test_i18ngrep "see protocol.version in" err &&
-       test_i18ngrep "server options require protocol version 2 or later" err
+       test_grep "see protocol.version in" err &&
+       test_grep "server options require protocol version 2 or later" err
 '
 
 test_expect_success 'server-options are sent when cloning' '
@@ -399,8 +399,8 @@ test_expect_success 'warn if using server-option with clone with legacy protocol
                clone --server-option=hello --server-option=world \
                "file://$(pwd)/file_parent" myclone 2>err &&
 
-       test_i18ngrep "see protocol.version in" err &&
-       test_i18ngrep "server options require protocol version 2 or later" err
+       test_grep "see protocol.version in" err &&
+       test_grep "server options require protocol version 2 or later" err
 '
 
 test_expect_success 'upload-pack respects config using protocol v2' '
@@ -495,7 +495,7 @@ test_expect_success 'partial clone warns if filter is not advertised' '
        git -C server config uploadpack.allowfilter 0 &&
        git -c protocol.version=2 \
                clone --filter=blob:none "file://$(pwd)/server" client 2>err &&
-       test_i18ngrep "filtering not recognized by server, ignoring" err
+       test_grep "filtering not recognized by server, ignoring" err
 '
 
 test_expect_success 'even with handcrafted request, filter does not work if not advertised' '
@@ -736,7 +736,7 @@ test_expect_success 'file:// --negotiate-only with protocol v0' '
                --negotiate-only \
                --negotiation-tip=$(git -C client rev-parse HEAD) \
                origin 2>err &&
-       test_i18ngrep "negotiate-only requires protocol v2" err
+       test_grep "negotiate-only requires protocol v2" err
 '
 
 test_expect_success 'push with custom path does not request v2' '
@@ -809,7 +809,7 @@ test_expect_success 'clone repository with http:// using protocol v2 with incomp
        # Server responded using protocol v2
        grep "git< version 2" log &&
        # Client reported appropriate failure
-       test_i18ngrep "bytes of length header were received" err
+       test_grep "bytes of length header were received" err
 '
 
 test_expect_success 'clone repository with http:// using protocol v2 with incomplete pktline body' '
@@ -826,7 +826,7 @@ test_expect_success 'clone repository with http:// using protocol v2 with incomp
        # Server responded using protocol v2
        grep "git< version 2" log &&
        # Client reported appropriate failure
-       test_i18ngrep "bytes of body are still expected" err
+       test_grep "bytes of body are still expected" err
 '
 
 test_expect_success 'clone with http:// using protocol v2 and invalid parameters' '
@@ -973,7 +973,7 @@ test_expect_success 'when server sends "ready", expect DELIM' '
 
        test_must_fail git -C http_child -c protocol.version=2 \
                fetch "$HTTPD_URL/one_time_perl/http_parent" 2> err &&
-       test_i18ngrep "expected packfile to be sent after .ready." err
+       test_grep "expected packfile to be sent after .ready." err
 '
 
 test_expect_success 'when server does not send "ready", expect FLUSH' '
@@ -1001,7 +1001,7 @@ test_expect_success 'when server does not send "ready", expect FLUSH' '
                fetch "$HTTPD_URL/one_time_perl/http_parent" 2> err &&
        grep "fetch< .*acknowledgments" log &&
        ! grep "fetch< .*ready" log &&
-       test_i18ngrep "expected no other sections to be sent after no .ready." err
+       test_grep "expected no other sections to be sent after no .ready." err
 '
 
 configure_exclusion () {
@@ -1111,7 +1111,7 @@ test_expect_success 'fetching with valid packfile URI but invalid hash fails' '
                git -c protocol.version=2 \
                -c fetch.uriprotocols=http,https \
                clone "$HTTPD_URL/smart/http_parent" http_child 2>err &&
-       test_i18ngrep "pack downloaded from.*does not match expected hash" err
+       test_grep "pack downloaded from.*does not match expected hash" err
 '
 
 test_expect_success 'packfile-uri with transfer.fsckobjects' '
@@ -1165,7 +1165,7 @@ test_expect_success 'packfile-uri with transfer.fsckobjects fails on bad object'
        test_must_fail git -c protocol.version=2 -c transfer.fsckobjects=1 \
                -c fetch.uriprotocols=http,https \
                clone "$HTTPD_URL/smart/http_parent" http_child 2>error &&
-       test_i18ngrep "invalid author/committer line - missing email" error
+       test_grep "invalid author/committer line - missing email" error
 '
 
 test_expect_success 'packfile-uri with transfer.fsckobjects succeeds when .gitmodules is separate from tree' '
@@ -1213,7 +1213,7 @@ test_expect_success 'packfile-uri with transfer.fsckobjects fails when .gitmodul
        test_must_fail git -c protocol.version=2 -c transfer.fsckobjects=1 \
                -c fetch.uriprotocols=http,https \
                clone "$HTTPD_URL/smart/http_parent" http_child 2>err &&
-       test_i18ngrep "disallowed submodule name" err
+       test_grep "disallowed submodule name" err
 '
 
 test_expect_success 'packfile-uri path redacted in trace' '
@@ -1296,7 +1296,7 @@ test_expect_success 'http:// --negotiate-only without wait-for-done support' '
                --negotiate-only \
                --negotiation-tip=$(git -C client rev-parse HEAD) \
                origin 2>err &&
-       test_i18ngrep "server does not support wait-for-done" err
+       test_grep "server does not support wait-for-done" err
 '
 
 test_expect_success 'http:// --negotiate-only with protocol v0' '
@@ -1310,7 +1310,7 @@ test_expect_success 'http:// --negotiate-only with protocol v0' '
                --negotiate-only \
                --negotiation-tip=$(git -C client rev-parse HEAD) \
                origin 2>err &&
-       test_i18ngrep "negotiate-only requires protocol v2" err
+       test_grep "negotiate-only requires protocol v2" err
 '
 
 # DO NOT add non-httpd-specific tests here, because the last part of this
index df74f80061c564b7f69961f0f3d665b1afca460f..191097171bcbd4d16f107430af4ee4bb4c14493a 100755 (executable)
@@ -484,7 +484,7 @@ test_expect_success 'server is initially ahead - no ref in want' '
        cp -r "$LOCAL_PRISTINE" local &&
        inconsistency main $(test_oid numeric) &&
        test_must_fail git -C local fetch 2>err &&
-       test_i18ngrep "fatal: remote error: upload-pack: not our ref" err
+       test_grep "fatal: remote error: upload-pack: not our ref" err
 '
 
 test_expect_success 'server is initially ahead - ref in want' '
@@ -530,7 +530,7 @@ test_expect_success 'server loses a ref - ref in want' '
        echo "s/main/rain/" >"$HTTPD_ROOT_PATH/one-time-perl" &&
        test_must_fail git -C local fetch 2>err &&
 
-       test_i18ngrep "fatal: remote error: unknown ref refs/heads/rain" err
+       test_grep "fatal: remote error: unknown ref refs/heads/rain" err
 '
 
 # DO NOT add non-httpd-specific tests here, because the last part of this
index ae1a00afb09e2f38b272602a9c39d51f0fa72110..11be64fc0381134ffe30aa83480d4557c89f6660 100755 (executable)
@@ -18,7 +18,7 @@ test_expect_success 'extra delim packet in v2 ls-refs args' '
        } >input &&
        test_must_fail env GIT_PROTOCOL=version=2 \
                git upload-pack . <input 2>err &&
-       test_i18ngrep "expected flush after ls-refs arguments" err
+       test_grep "expected flush after ls-refs arguments" err
 '
 
 test_expect_success 'extra delim packet in v2 fetch args' '
@@ -31,7 +31,7 @@ test_expect_success 'extra delim packet in v2 fetch args' '
        } >input &&
        test_must_fail env GIT_PROTOCOL=version=2 \
                git upload-pack . <input 2>err &&
-       test_i18ngrep "expected flush after fetch arguments" err
+       test_grep "expected flush after fetch arguments" err
 '
 
 test_expect_success 'bogus symref in v0 capabilities' '
index d386076dbd3f8db7611ab843efcbddca362fa06c..4e0a77f9859b392b06edd9f3696e804271d6f225 100755 (executable)
@@ -137,7 +137,7 @@ test_expect_success 'forced push' '
 test_expect_success 'cloning without refspec' '
        GIT_REMOTE_TESTGIT_NOREFSPEC=1 \
        git clone "testgit::${PWD}/server" local2 2>error &&
-       test_i18ngrep "this remote helper should implement refspec capability" error &&
+       test_grep "this remote helper should implement refspec capability" error &&
        compare_refs local2 HEAD server HEAD
 '
 
@@ -145,7 +145,7 @@ test_expect_success 'pulling without refspecs' '
        (cd local2 &&
        git reset --hard &&
        GIT_REMOTE_TESTGIT_NOREFSPEC=1 git pull 2>../error) &&
-       test_i18ngrep "this remote helper should implement refspec capability" error &&
+       test_grep "this remote helper should implement refspec capability" error &&
        compare_refs local2 HEAD server HEAD
 '
 
@@ -157,7 +157,7 @@ test_expect_success 'pushing without refspecs' '
        GIT_REMOTE_TESTGIT_NOREFSPEC=1 &&
        export GIT_REMOTE_TESTGIT_NOREFSPEC &&
        test_must_fail git push 2>../error) &&
-       test_i18ngrep "remote-helper doesn.t support push; refspec needed" error
+       test_grep "remote-helper doesn.t support push; refspec needed" error
 '
 
 test_expect_success 'pulling without marks' '
@@ -256,7 +256,7 @@ clean_mark () {
 test_expect_success 'proper failure checks for fetching' '
        (cd local &&
        test_must_fail env GIT_REMOTE_TESTGIT_FAILURE=1 git fetch 2>error &&
-       test_i18ngrep -q "error while running fast-import" error
+       test_grep -q "error while running fast-import" error
        )
 '
 
index d8da5f58d16a149647ec35876117b1874bff61f7..769c717e88b83de123a33e9c9bc4b52d192a780a 100755 (executable)
@@ -20,7 +20,7 @@ test_expect_success 'http(s) transport respects GIT_ALLOW_PROTOCOL' '
        test_must_fail env GIT_ALLOW_PROTOCOL=http:https \
                           GIT_SMART_HTTP=0 \
                git clone "$HTTPD_URL/ftp-redir/repo.git" 2>stderr &&
-       test_i18ngrep -E "(ftp.*disabled|your curl version is too old)" stderr
+       test_grep -E "(ftp.*disabled|your curl version is too old)" stderr
 '
 
 test_expect_success 'curl limits redirects' '
index 16635ecc33e5e67ab56985a5e4a071492ed22cc9..73a2465aa0eca662e69f1efd49f285786f5bd9c1 100755 (executable)
@@ -118,10 +118,10 @@ done
 
 test_expect_success 'show advice that grafts are deprecated' '
        git show HEAD 2>err &&
-       test_i18ngrep "git replace" err &&
+       test_grep "git replace" err &&
        test_config advice.graftFileDeprecated false &&
        git show HEAD 2>err &&
-       test_i18ngrep ! "git replace" err
+       test_grep ! "git replace" err
 '
 
 test_done
index 1a9d37e63862f03877fe3d02b94ec8428e7ea01a..cdf7aa94276cb9e993dcad825994828322e5b3ea 100755 (executable)
@@ -151,12 +151,12 @@ do
        do
                test_expect_success "$section: fails with --$pseudoopt" '
                        test_must_fail git rev-list --exclude-hidden=$section --$pseudoopt 2>err &&
-                       test_i18ngrep "error: --exclude-hidden cannot be used together with --$pseudoopt" err
+                       test_grep "error: --exclude-hidden cannot be used together with --$pseudoopt" err
                '
 
                test_expect_success "$section: fails with --$pseudoopt=pattern" '
                        test_must_fail git rev-list --exclude-hidden=$section --$pseudoopt=pattern 2>err &&
-                       test_i18ngrep "error: --exclude-hidden cannot be used together with --$pseudoopt" err
+                       test_grep "error: --exclude-hidden cannot be used together with --$pseudoopt" err
                '
        done
 done
index fb01bd6abce2c815b6f50f75e27e2c8f567cf09c..2a5b7d8379c2a9ced13f7eb85e29d0c895450e2f 100755 (executable)
@@ -220,7 +220,7 @@ test_expect_success 'bisect start: existing ".git/BISECT_START" not modified if
        cp .git/BISECT_START saved &&
        test_must_fail git bisect start $HASH4 foo -- &&
        git branch > branch.output &&
-       test_i18ngrep "* (no branch, bisect started on other)" branch.output > /dev/null &&
+       test_grep "* (no branch, bisect started on other)" branch.output > /dev/null &&
        test_cmp saved .git/BISECT_START
 '
 test_expect_success 'bisect start: no ".git/BISECT_START" if mistaken rev' '
@@ -588,7 +588,7 @@ test_expect_success 'bisect starting with a detached HEAD' '
 test_expect_success 'bisect errors out if bad and good are mistaken' '
        git bisect reset &&
        test_must_fail git bisect start $HASH2 $HASH4 2> rev_list_error &&
-       test_i18ngrep "mistook good and bad" rev_list_error &&
+       test_grep "mistook good and bad" rev_list_error &&
        git bisect reset
 '
 
@@ -630,7 +630,7 @@ test_expect_success 'side branch creation' '
 
 test_expect_success 'good merge base when good and bad are siblings' '
        git bisect start "$HASH7" "$SIDE_HASH7" > my_bisect_log.txt &&
-       test_i18ngrep "merge base must be tested" my_bisect_log.txt &&
+       test_grep "merge base must be tested" my_bisect_log.txt &&
        grep $HASH4 my_bisect_log.txt &&
        git bisect good > my_bisect_log.txt &&
        ! grep "merge base must be tested" my_bisect_log.txt &&
@@ -639,7 +639,7 @@ test_expect_success 'good merge base when good and bad are siblings' '
 '
 test_expect_success 'skipped merge base when good and bad are siblings' '
        git bisect start "$SIDE_HASH7" "$HASH7" > my_bisect_log.txt &&
-       test_i18ngrep "merge base must be tested" my_bisect_log.txt &&
+       test_grep "merge base must be tested" my_bisect_log.txt &&
        grep $HASH4 my_bisect_log.txt &&
        git bisect skip > my_bisect_log.txt 2>&1 &&
        grep "warning" my_bisect_log.txt &&
@@ -649,11 +649,11 @@ test_expect_success 'skipped merge base when good and bad are siblings' '
 
 test_expect_success 'bad merge base when good and bad are siblings' '
        git bisect start "$HASH7" HEAD > my_bisect_log.txt &&
-       test_i18ngrep "merge base must be tested" my_bisect_log.txt &&
+       test_grep "merge base must be tested" my_bisect_log.txt &&
        grep $HASH4 my_bisect_log.txt &&
        test_must_fail git bisect bad > my_bisect_log.txt 2>&1 &&
-       test_i18ngrep "merge base $HASH4 is bad" my_bisect_log.txt &&
-       test_i18ngrep "fixed between $HASH4 and \[$SIDE_HASH7\]" my_bisect_log.txt &&
+       test_grep "merge base $HASH4 is bad" my_bisect_log.txt &&
+       test_grep "fixed between $HASH4 and \[$SIDE_HASH7\]" my_bisect_log.txt &&
        git bisect reset
 '
 
@@ -704,9 +704,9 @@ test_expect_success '"git bisect run --first-parent" simple case' '
 
 test_expect_success 'good merge bases when good and bad are siblings' '
        git bisect start "$B_HASH" "$A_HASH" > my_bisect_log.txt &&
-       test_i18ngrep "merge base must be tested" my_bisect_log.txt &&
+       test_grep "merge base must be tested" my_bisect_log.txt &&
        git bisect good > my_bisect_log2.txt &&
-       test_i18ngrep "merge base must be tested" my_bisect_log2.txt &&
+       test_grep "merge base must be tested" my_bisect_log2.txt &&
        {
                {
                        grep "$SIDE_HASH5" my_bisect_log.txt &&
@@ -721,14 +721,14 @@ test_expect_success 'good merge bases when good and bad are siblings' '
 
 test_expect_success 'optimized merge base checks' '
        git bisect start "$HASH7" "$SIDE_HASH7" > my_bisect_log.txt &&
-       test_i18ngrep "merge base must be tested" my_bisect_log.txt &&
+       test_grep "merge base must be tested" my_bisect_log.txt &&
        grep "$HASH4" my_bisect_log.txt &&
        git bisect good > my_bisect_log2.txt &&
        test -f ".git/BISECT_ANCESTORS_OK" &&
        test "$HASH6" = $(git rev-parse --verify HEAD) &&
        git bisect bad &&
        git bisect good "$A_HASH" > my_bisect_log4.txt &&
-       test_i18ngrep "merge base must be tested" my_bisect_log4.txt &&
+       test_grep "merge base must be tested" my_bisect_log4.txt &&
        test_path_is_missing ".git/BISECT_ANCESTORS_OK"
 '
 
@@ -806,7 +806,7 @@ test_expect_success 'skipping away from skipped commit' '
 
 test_expect_success 'erroring out when using bad path arguments' '
        test_must_fail git bisect start $PARA_HASH7 $HASH1 -- foobar 2> error.txt &&
-       test_i18ngrep "bad path arguments" error.txt
+       test_grep "bad path arguments" error.txt
 '
 
 test_expect_success 'test bisection on bare repo - --no-checkout specified' '
index 7ddbd96e58e71d0ef5cae0334b0ff005c7a5cb25..acc281c116815e2fbec71ca6c78fc90ed6280f73 100755 (executable)
@@ -83,13 +83,13 @@ test_expect_success 'checkout (diverged from upstream)' '
        (
                cd test && git checkout b1
        ) >actual &&
-       test_i18ngrep "have 1 and 1 different" actual
+       test_grep "have 1 and 1 different" actual
 '
 
 test_expect_success 'checkout with local tracked branch' '
        git checkout main &&
        git checkout follower >actual &&
-       test_i18ngrep "is ahead of" actual
+       test_grep "is ahead of" actual
 '
 
 test_expect_success 'checkout (upstream is gone)' '
@@ -97,14 +97,14 @@ test_expect_success 'checkout (upstream is gone)' '
                cd test &&
                git checkout b5
        ) >actual &&
-       test_i18ngrep "is based on .*, but the upstream is gone." actual
+       test_grep "is based on .*, but the upstream is gone." actual
 '
 
 test_expect_success 'checkout (up-to-date with upstream)' '
        (
                cd test && git checkout b6
        ) >actual &&
-       test_i18ngrep "Your branch is up to date with .origin/main" actual
+       test_grep "Your branch is up to date with .origin/main" actual
 '
 
 test_expect_success 'status (diverged from upstream)' '
@@ -114,7 +114,7 @@ test_expect_success 'status (diverged from upstream)' '
                # reports nothing to commit
                test_must_fail git commit --dry-run
        ) >actual &&
-       test_i18ngrep "have 1 and 1 different" actual
+       test_grep "have 1 and 1 different" actual
 '
 
 test_expect_success 'status (upstream is gone)' '
@@ -124,7 +124,7 @@ test_expect_success 'status (upstream is gone)' '
                # reports nothing to commit
                test_must_fail git commit --dry-run
        ) >actual &&
-       test_i18ngrep "is based on .*, but the upstream is gone." actual
+       test_grep "is based on .*, but the upstream is gone." actual
 '
 
 test_expect_success 'status (up-to-date with upstream)' '
@@ -134,7 +134,7 @@ test_expect_success 'status (up-to-date with upstream)' '
                # reports nothing to commit
                test_must_fail git commit --dry-run
        ) >actual &&
-       test_i18ngrep "Your branch is up to date with .origin/main" actual
+       test_grep "Your branch is up to date with .origin/main" actual
 '
 
 cat >expect <<\EOF
@@ -253,7 +253,7 @@ test_expect_success 'fail to track lightweight tags' '
        git checkout main &&
        git tag light &&
        test_must_fail git branch --track lighttrack light >actual &&
-       test_i18ngrep ! "set up to track" actual &&
+       test_grep ! "set up to track" actual &&
        test_must_fail git checkout lighttrack
 '
 
@@ -261,7 +261,7 @@ test_expect_success 'fail to track annotated tags' '
        git checkout main &&
        git tag -m heavy heavy &&
        test_must_fail git branch --track heavytrack heavy >actual &&
-       test_i18ngrep ! "set up to track" actual &&
+       test_grep ! "set up to track" actual &&
        test_must_fail git checkout heavytrack
 '
 
index c9925edf20e7b82ed286b97b9d7247f884c20a62..c6e9b33e44edf4d2d7ecefe688ca6df5fc82d112 100755 (executable)
@@ -44,7 +44,7 @@ commit_peeling_shows_parents ()
        _parent_number=$(( $_parent_number + 1 ))
     done &&
     test_must_fail git rev-parse --verify $_commit^$_parent_number 2>err &&
-    test_i18ngrep "Needed a single revision" err
+    test_grep "Needed a single revision" err
 }
 
 commit_has_parents ()
@@ -137,8 +137,8 @@ test_expect_success 'tag replaced commit' '
 
 test_expect_success '"git fsck" works' '
        git fsck main >fsck_main.out &&
-       test_i18ngrep "dangling commit $R" fsck_main.out &&
-       test_i18ngrep "dangling tag $(git show-ref -s refs/tags/mytag)" fsck_main.out &&
+       test_grep "dangling commit $R" fsck_main.out &&
+       test_grep "dangling tag $(git show-ref -s refs/tags/mytag)" fsck_main.out &&
        test -z "$(git fsck)"
 '
 
@@ -490,9 +490,9 @@ test_expect_success '--convert-graft-file' '
                $(git rev-parse HEAD^^ HEAD^ HEAD^^ HEAD^2) \
                >.git/info/grafts &&
        git status 2>stderr &&
-       test_i18ngrep "hint:.*grafts is deprecated" stderr &&
+       test_grep "hint:.*grafts is deprecated" stderr &&
        git replace --convert-graft-file 2>stderr &&
-       test_i18ngrep ! "hint:.*grafts is deprecated" stderr &&
+       test_grep ! "hint:.*grafts is deprecated" stderr &&
        test_path_is_missing .git/info/grafts &&
 
        : verify that the history is now "grafted" &&
@@ -503,8 +503,8 @@ test_expect_success '--convert-graft-file' '
        test_when_finished "rm -f .git/info/grafts" &&
        echo $EMPTY_BLOB $EMPTY_TREE >.git/info/grafts &&
        test_must_fail git replace --convert-graft-file 2>err &&
-       test_i18ngrep "$EMPTY_BLOB $EMPTY_TREE" err &&
-       test_i18ngrep "$EMPTY_BLOB $EMPTY_TREE" .git/info/grafts
+       test_grep "$EMPTY_BLOB $EMPTY_TREE" err &&
+       test_grep "$EMPTY_BLOB $EMPTY_TREE" .git/info/grafts
 '
 
 test_done
index 9350b5fd2c235604560782e0412ed8f9fee069e3..5d28507efc687b12af0de9762668ec87fd03a0fc 100755 (executable)
@@ -28,7 +28,7 @@ test_expect_success 'TODO (should fail!): traverse unexpected non-blob entry (lo
 
 test_expect_success 'traverse unexpected non-blob entry (seen)' '
        test_must_fail git rev-list --objects $tree $broken_tree >output 2>&1 &&
-       test_i18ngrep "is not a blob" output
+       test_grep "is not a blob" output
 '
 
 test_expect_success 'setup unexpected non-tree entry' '
@@ -42,7 +42,7 @@ test_expect_success 'traverse unexpected non-tree entry (lone)' '
 
 test_expect_success 'traverse unexpected non-tree entry (seen)' '
        test_must_fail git rev-list --objects $blob $broken_tree >output 2>&1 &&
-       test_i18ngrep "is not a tree" output
+       test_grep "is not a tree" output
 '
 
 test_expect_success 'setup unexpected non-commit parent' '
@@ -54,13 +54,13 @@ test_expect_success 'setup unexpected non-commit parent' '
 
 test_expect_success 'traverse unexpected non-commit parent (lone)' '
        test_must_fail git rev-list --objects $broken_commit >output 2>&1 &&
-       test_i18ngrep "not a commit" output
+       test_grep "not a commit" output
 '
 
 test_expect_success 'traverse unexpected non-commit parent (seen)' '
        test_must_fail git rev-list --objects $blob $broken_commit \
                >output 2>&1 &&
-       test_i18ngrep "not a commit" output
+       test_grep "not a commit" output
 '
 
 test_expect_success 'setup unexpected non-tree root' '
@@ -76,7 +76,7 @@ test_expect_success 'traverse unexpected non-tree root (lone)' '
 test_expect_success 'traverse unexpected non-tree root (seen)' '
        test_must_fail git rev-list --objects $blob $broken_commit \
                >output 2>&1 &&
-       test_i18ngrep "not a tree" output
+       test_grep "not a tree" output
 '
 
 test_expect_success 'setup unexpected non-commit tag' '
@@ -93,7 +93,7 @@ test_expect_success 'traverse unexpected non-commit tag (lone)' '
 
 test_expect_success 'traverse unexpected non-commit tag (seen)' '
        test_must_fail git rev-list --objects $blob $tag >output 2>&1 &&
-       test_i18ngrep "not a commit" output
+       test_grep "not a commit" output
 '
 
 test_expect_success 'setup unexpected non-tree tag' '
@@ -110,7 +110,7 @@ test_expect_success 'traverse unexpected non-tree tag (lone)' '
 
 test_expect_success 'traverse unexpected non-tree tag (seen)' '
        test_must_fail git rev-list --objects $blob $tag >output 2>&1 &&
-       test_i18ngrep "not a tree" output
+       test_grep "not a tree" output
 '
 
 test_expect_success 'setup unexpected non-blob tag' '
@@ -127,7 +127,7 @@ test_expect_success 'traverse unexpected non-blob tag (lone)' '
 
 test_expect_success 'traverse unexpected non-blob tag (seen)' '
        test_must_fail git rev-list --objects $commit $tag >output 2>&1 &&
-       test_i18ngrep "not a blob" output
+       test_grep "not a blob" output
 '
 
 test_done
index 8d9d6604f052f6645e8760d3890f1ed29384fd49..52822b9461a18c89faa35d7dc0be6a1e4690da18 100755 (executable)
@@ -457,7 +457,7 @@ expect_invalid_filter_spec () {
        test_must_fail git -C r3 rev-list --objects --filter="$spec" HEAD \
                >actual 2>actual_stderr &&
        test_must_be_empty actual &&
-       test_i18ngrep "$err" actual_stderr
+       test_grep "$err" actual_stderr
 }
 
 test_expect_success 'combine:... while URL-encoding things that should not be' '
index 0a5c4875407e5ec504831cdcb5d2c6e438d622f1..e78315d23d7d32c6db1f9405aa8788862bf37cd5 100755 (executable)
@@ -392,7 +392,7 @@ test_expect_success 'describe directly tagged blob' '
 test_expect_success 'describe tag object' '
        git tag test-blob-1 -a -m msg unique-file:file &&
        test_must_fail git describe test-blob-1 2>actual &&
-       test_i18ngrep "fatal: test-blob-1 is neither a commit nor blob" actual
+       test_grep "fatal: test-blob-1 is neither a commit nor blob" actual
 '
 
 test_expect_success ULIMIT_STACK_SIZE 'name-rev works in a deep repo' '
index 3214d9db97d9bcedf86de0cfed611517cfbf58f5..16ce4cfcc6420477b2c86718f2e68834b843de61 100755 (executable)
@@ -27,7 +27,7 @@ test_expect_success 'error message for path inside submodule' '
 
 test_expect_success 'error message for path inside submodule from within submodule' '
        test_must_fail git -C sub add . 2>actual &&
-       test_i18ngrep "in unpopulated submodule" actual
+       test_grep "in unpopulated submodule" actual
 '
 
 test_done
index f70c395e75f556d72936c78dbd9bfa9a2554a58f..a9c1e4e0ecd0edf0269d3c1506ea1c8715c58d07 100755 (executable)
@@ -236,7 +236,7 @@ test_expect_success 'check label excluding other labels' '
 
 test_expect_success 'fail on multiple attr specifiers in one pathspec item' '
        test_must_fail git ls-files . ":(attr:labelB,attr:labelC)" 2>actual &&
-       test_i18ngrep "Only one" actual
+       test_grep "Only one" actual
 '
 
 test_expect_success 'fail if attr magic is used places not implemented' '
@@ -246,7 +246,7 @@ test_expect_success 'fail if attr magic is used places not implemented' '
        # though, but git-add is convenient as it has its own internal pathspec
        # parsing.
        test_must_fail git add ":(attr:labelB)" 2>actual &&
-       test_i18ngrep "magic not supported" actual
+       test_grep "magic not supported" actual
 '
 
 test_expect_success 'abort on giving invalid label on the command line' '
@@ -269,12 +269,12 @@ test_expect_success 'check attribute list' '
 
 test_expect_success 'backslash cannot be the last character' '
        test_must_fail git ls-files ":(attr:label=foo\\ labelA=bar)" 2>actual &&
-       test_i18ngrep "not allowed as last character in attr value" actual
+       test_grep "not allowed as last character in attr value" actual
 '
 
 test_expect_success 'backslash cannot be used as a value' '
        test_must_fail git ls-files ":(attr:label=f\\\oo)" 2>actual &&
-       test_i18ngrep "for value matching" actual
+       test_grep "for value matching" actual
 '
 
 test_expect_success 'reading from .gitattributes in a subdirectory (1)' '
index ae8b5379e24d52c559e0d02da6f95fdbc40874c8..2db37a6596953532423b6c1518fee199a1f5c3de 100755 (executable)
@@ -15,11 +15,11 @@ test_expect_success 'log and ls-files in a bare repository' '
                cd bare &&
                test_must_fail git log -- .. >out 2>err &&
                test_must_be_empty out &&
-               test_i18ngrep "outside repository" err &&
+               test_grep "outside repository" err &&
 
                test_must_fail git ls-files -- .. >out 2>err &&
                test_must_be_empty out &&
-               test_i18ngrep "outside repository" err
+               test_grep "outside repository" err
        )
 '
 
@@ -28,11 +28,11 @@ test_expect_success 'log and ls-files in .git directory' '
                cd .git &&
                test_must_fail git log -- .. >out 2>err &&
                test_must_be_empty out &&
-               test_i18ngrep "outside repository" err &&
+               test_grep "outside repository" err &&
 
                test_must_fail git ls-files -- .. >out 2>err &&
                test_must_be_empty out &&
-               test_i18ngrep "outside repository" err
+               test_grep "outside repository" err
        )
 '
 
index 772238e582c6f11b81c12a519f81bbe48cecf635..2738b50c2a9e01aab9e3248e666ddb91be9c3bcf 100755 (executable)
@@ -311,13 +311,13 @@ test_expect_success 'Rename+D/F conflict; renamed file merges but dir in way' '
        git checkout -q renamed-file-has-no-conflicts^0 &&
        test_must_fail git merge --strategy=recursive dir-in-way >output &&
 
-       test_i18ngrep "CONFLICT (modify/delete): dir/file-in-the-way" output &&
-       test_i18ngrep "Auto-merging dir" output &&
+       test_grep "CONFLICT (modify/delete): dir/file-in-the-way" output &&
+       test_grep "Auto-merging dir" output &&
        if test "$GIT_TEST_MERGE_ALGORITHM" = ort
        then
-               test_i18ngrep "moving it to dir~HEAD instead" output
+               test_grep "moving it to dir~HEAD instead" output
        else
-               test_i18ngrep "Adding as dir~HEAD instead" output
+               test_grep "Adding as dir~HEAD instead" output
        fi &&
 
        test_stdout_line_count = 3 git ls-files -u &&
@@ -338,13 +338,13 @@ test_expect_success 'Same as previous, but merged other way' '
        test_must_fail git merge --strategy=recursive renamed-file-has-no-conflicts >output 2>errors &&
 
        ! grep "error: refusing to lose untracked file at" errors &&
-       test_i18ngrep "CONFLICT (modify/delete): dir/file-in-the-way" output &&
-       test_i18ngrep "Auto-merging dir" output &&
+       test_grep "CONFLICT (modify/delete): dir/file-in-the-way" output &&
+       test_grep "Auto-merging dir" output &&
        if test "$GIT_TEST_MERGE_ALGORITHM" = ort
        then
-               test_i18ngrep "moving it to dir~renamed-file-has-no-conflicts instead" output
+               test_grep "moving it to dir~renamed-file-has-no-conflicts instead" output
        else
-               test_i18ngrep "Adding as dir~renamed-file-has-no-conflicts instead" output
+               test_grep "Adding as dir~renamed-file-has-no-conflicts instead" output
        fi &&
 
        test_stdout_line_count = 3 git ls-files -u &&
index 076b6a74d5b6de28c8499f687f7517daad849cfb..80d7b5eabaf02e555cab3c4e37342a9eb2788f5f 100755 (executable)
@@ -476,7 +476,7 @@ test_expect_success 'handle rename-with-content-merge vs. add' '
                git checkout A^0 &&
 
                test_must_fail git merge -s recursive B^0 >out &&
-               test_i18ngrep "CONFLICT (.*/add)" out &&
+               test_grep "CONFLICT (.*/add)" out &&
 
                git ls-files -s >out &&
                test_line_count = 2 out &&
@@ -522,7 +522,7 @@ test_expect_success 'handle rename-with-content-merge vs. add, merge other way'
                git checkout B^0 &&
 
                test_must_fail git merge -s recursive A^0 >out &&
-               test_i18ngrep "CONFLICT (.*/add)" out &&
+               test_grep "CONFLICT (.*/add)" out &&
 
                git ls-files -s >out &&
                test_line_count = 2 out &&
@@ -602,7 +602,7 @@ test_expect_success 'handle rename/rename (2to1) conflict correctly' '
                git checkout B^0 &&
 
                test_must_fail git merge -s recursive C^0 >out &&
-               test_i18ngrep "CONFLICT (\(.*\)/\1)" out &&
+               test_grep "CONFLICT (\(.*\)/\1)" out &&
 
                git ls-files -s >out &&
                test_line_count = 2 out &&
@@ -914,8 +914,8 @@ test_expect_merge_algorithm failure success 'rad-check: rename/add/delete confli
                # be flexible in the type of console output message(s) reported
                # for this particular case; we will be more stringent about the
                # contents of the index and working directory.
-               test_i18ngrep "CONFLICT (.*/add)" out &&
-               test_i18ngrep "CONFLICT (rename.*/delete)" out &&
+               test_grep "CONFLICT (.*/add)" out &&
+               test_grep "CONFLICT (rename.*/delete)" out &&
                test_must_be_empty err &&
 
                git ls-files -s >file_count &&
@@ -988,8 +988,8 @@ test_expect_merge_algorithm failure success 'rrdd-check: rename/rename(2to1)/del
                # be flexible in the type of console output message(s) reported
                # for this particular case; we will be more stringent about the
                # contents of the index and working directory.
-               test_i18ngrep "CONFLICT (\(.*\)/\1)" out &&
-               test_i18ngrep "CONFLICT (rename.*delete)" out &&
+               test_grep "CONFLICT (\(.*\)/\1)" out &&
+               test_grep "CONFLICT (rename.*delete)" out &&
                test_must_be_empty err &&
 
                git ls-files -s >file_count &&
@@ -1068,7 +1068,7 @@ test_expect_merge_algorithm failure success 'mod6-check: chains of rename/rename
 
                test_must_fail git merge -s recursive B^0 >out 2>err &&
 
-               test_i18ngrep "CONFLICT (rename/rename)" out &&
+               test_grep "CONFLICT (rename/rename)" out &&
                test_must_be_empty err &&
 
                git ls-files -s >file_count &&
index 944de75b80528cbd964d3a42324039dceade07f3..88d1cf2cde9dabbba74daf6debdc82b11ba12ec1 100755 (executable)
@@ -276,7 +276,7 @@ test_expect_success '1d: Directory renames cause a rename/rename(2to1) conflict'
                git checkout A^0 &&
 
                test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
-               test_i18ngrep "CONFLICT (\(.*\)/\1)" out &&
+               test_grep "CONFLICT (\(.*\)/\1)" out &&
 
                git ls-files -s >out &&
                test_line_count = 8 out &&
@@ -515,7 +515,7 @@ test_expect_success '2a: Directory split into two on one side, with equal number
                git checkout A^0 &&
 
                test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
-               test_i18ngrep "CONFLICT.*directory rename split" out &&
+               test_grep "CONFLICT.*directory rename split" out &&
 
                git ls-files -s >out &&
                test_line_count = 3 out &&
@@ -591,7 +591,7 @@ test_expect_success '2b: Directory split into two on one side, with equal number
                git rev-parse >expect \
                         O:z/b  O:z/c  B:x/d &&
                test_cmp expect actual &&
-               test_i18ngrep ! "CONFLICT.*directory rename split" out
+               test_grep ! "CONFLICT.*directory rename split" out
        )
 '
 
@@ -726,8 +726,8 @@ test_expect_success '3b: Avoid implicit rename if involved as source on current
                git checkout A^0 &&
 
                test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
-               test_i18ngrep CONFLICT.*rename/rename.*z/d.*x/d.*w/d out &&
-               test_i18ngrep ! CONFLICT.*rename/rename.*y/d out &&
+               test_grep CONFLICT.*rename/rename.*z/d.*x/d.*w/d out &&
+               test_grep ! CONFLICT.*rename/rename.*y/d out &&
 
                git ls-files -s >out &&
                test_line_count = 5 out &&
@@ -938,7 +938,7 @@ test_expect_success '5a: Merge directories, other side adds files to original an
                git checkout A^0 &&
 
                test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
-               test_i18ngrep "CONFLICT.*implicit dir rename" out &&
+               test_grep "CONFLICT.*implicit dir rename" out &&
 
                git ls-files -s >out &&
                test_line_count = 6 out &&
@@ -1013,7 +1013,7 @@ test_expect_success '5b: Rename/delete in order to get add/add/add conflict' '
                git checkout A^0 &&
 
                test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
-               test_i18ngrep "CONFLICT (add/add).* y/d" out &&
+               test_grep "CONFLICT (add/add).* y/d" out &&
 
                git ls-files -s >out &&
                test_line_count = 5 out &&
@@ -1094,8 +1094,8 @@ test_expect_success '5c: Transitive rename would cause rename/rename/rename/add/
                git checkout A^0 &&
 
                test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
-               test_i18ngrep "CONFLICT (rename/rename).*x/d.*w/d.*z/d" out &&
-               test_i18ngrep "CONFLICT (add/add).* y/d" out &&
+               test_grep "CONFLICT (rename/rename).*x/d.*w/d.*z/d" out &&
+               test_grep "CONFLICT (add/add).* y/d" out &&
 
                git ls-files -s >out &&
                test_line_count = 9 out &&
@@ -1179,7 +1179,7 @@ test_expect_success '5d: Directory/file/file conflict due to directory rename' '
                git checkout A^0 &&
 
                test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
-               test_i18ngrep "CONFLICT (file/directory).*y/d" out &&
+               test_grep "CONFLICT (file/directory).*y/d" out &&
 
                git ls-files -s >out &&
                test_line_count = 6 out &&
@@ -1278,7 +1278,7 @@ test_expect_success '6a: Tricky rename/delete' '
                git checkout A^0 &&
 
                test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
-               test_i18ngrep "CONFLICT (rename/delete).*z/c.*y/c" out &&
+               test_grep "CONFLICT (rename/delete).*z/c.*y/c" out &&
 
                if test "$GIT_TEST_MERGE_ALGORITHM" = ort
                then
@@ -1740,8 +1740,8 @@ test_expect_success '7a: rename-dir vs. rename-dir (NOT split evenly) PLUS add-o
                git checkout A^0 &&
 
                test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
-               test_i18ngrep "CONFLICT (rename/rename).*z/b.*y/b.*w/b" out &&
-               test_i18ngrep "CONFLICT (rename/rename).*z/c.*y/c.*x/c" out &&
+               test_grep "CONFLICT (rename/rename).*z/b.*y/b.*w/b" out &&
+               test_grep "CONFLICT (rename/rename).*z/c.*y/c.*x/c" out &&
 
                git ls-files -s >out &&
                test_line_count = 7 out &&
@@ -1813,7 +1813,7 @@ test_expect_success '7b: rename/rename(2to1), but only due to transitive rename'
                git checkout A^0 &&
 
                test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
-               test_i18ngrep "CONFLICT (\(.*\)/\1)" out &&
+               test_grep "CONFLICT (\(.*\)/\1)" out &&
 
                git ls-files -s >out &&
                test_line_count = 4 out &&
@@ -1900,7 +1900,7 @@ test_expect_success '7c: rename/rename(1to...2or3); transitive rename may add co
                git checkout A^0 &&
 
                test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
-               test_i18ngrep "CONFLICT (rename/rename).*x/d.*w/d.*y/d" out &&
+               test_grep "CONFLICT (rename/rename).*x/d.*w/d.*y/d" out &&
 
                git ls-files -s >out &&
                test_line_count = 5 out &&
@@ -1965,7 +1965,7 @@ test_expect_success '7d: transitive rename involved in rename/delete; how is it
                git checkout A^0 &&
 
                test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
-               test_i18ngrep "CONFLICT (rename/delete).*x/d.*y/d" out &&
+               test_grep "CONFLICT (rename/delete).*x/d.*y/d" out &&
 
                if test "$GIT_TEST_MERGE_ALGORITHM" = ort
                then
@@ -2071,7 +2071,7 @@ test_expect_success '7e: transitive rename in rename/delete AND dirs in the way'
                git checkout A^0 &&
 
                test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
-               test_i18ngrep "CONFLICT (rename/delete).*x/d.*y/d" out &&
+               test_grep "CONFLICT (rename/delete).*x/d.*y/d" out &&
 
                if test "$GIT_TEST_MERGE_ALGORITHM" = ort
                then
@@ -2330,7 +2330,7 @@ test_expect_success '8c: modify/delete or rename+modify/delete' '
                git checkout A^0 &&
 
                test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
-               test_i18ngrep "CONFLICT (modify/delete).* z/d" out &&
+               test_grep "CONFLICT (modify/delete).* z/d" out &&
 
                git ls-files -s >out &&
                test_line_count = 5 out &&
@@ -2491,8 +2491,8 @@ test_expect_success '8e: Both sides rename, one side adds to original directory'
                git checkout A^0 &&
 
                test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
-               test_i18ngrep CONFLICT.*rename/rename.*z/c.*y/c.*w/c out &&
-               test_i18ngrep CONFLICT.*rename/rename.*z/b.*y/b.*w/b out &&
+               test_grep CONFLICT.*rename/rename.*z/c.*y/c.*w/c out &&
+               test_grep CONFLICT.*rename/rename.*z/b.*y/b.*w/b out &&
 
                git ls-files -s >out &&
                test_line_count = 7 out &&
@@ -2741,7 +2741,7 @@ test_expect_success '9c: Doubly transitive rename?' '
                git checkout A^0 &&
 
                git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
-               test_i18ngrep "WARNING: Avoiding applying x -> z rename to x/f" out &&
+               test_grep "WARNING: Avoiding applying x -> z rename to x/f" out &&
 
                git ls-files -s >out &&
                test_line_count = 6 out &&
@@ -2830,10 +2830,10 @@ test_expect_success '9d: N-way transitive rename?' '
                git checkout A^0 &&
 
                git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
-               test_i18ngrep "WARNING: Avoiding applying z -> y rename to z/t" out &&
-               test_i18ngrep "WARNING: Avoiding applying y -> x rename to y/a" out &&
-               test_i18ngrep "WARNING: Avoiding applying x -> w rename to x/b" out &&
-               test_i18ngrep "WARNING: Avoiding applying w -> v rename to w/c" out &&
+               test_grep "WARNING: Avoiding applying z -> y rename to z/t" out &&
+               test_grep "WARNING: Avoiding applying y -> x rename to y/a" out &&
+               test_grep "WARNING: Avoiding applying x -> w rename to x/b" out &&
+               test_grep "WARNING: Avoiding applying w -> v rename to w/c" out &&
 
                git ls-files -s >out &&
                test_line_count = 7 out &&
@@ -3215,7 +3215,7 @@ test_expect_success '10a: Overwrite untracked with normal rename/delete' '
 
                test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
                test_path_is_missing .git/MERGE_HEAD &&
-               test_i18ngrep "The following untracked working tree files would be overwritten by merge" err &&
+               test_grep "The following untracked working tree files would be overwritten by merge" err &&
 
                git ls-files -s >out &&
                test_line_count = 1 out &&
@@ -3287,7 +3287,7 @@ test_expect_success '10b: Overwrite untracked with dir rename + delete' '
                if test "$GIT_TEST_MERGE_ALGORITHM" = ort
                then
                        test_path_is_missing .git/MERGE_HEAD &&
-                       test_i18ngrep "error: The following untracked working tree files would be overwritten by merge" err &&
+                       test_grep "error: The following untracked working tree files would be overwritten by merge" err &&
 
                        git ls-files -s >out &&
                        test_line_count = 1 out &&
@@ -3296,8 +3296,8 @@ test_expect_success '10b: Overwrite untracked with dir rename + delete' '
                        git ls-files -o >out &&
                        test_line_count = 5 out
                else
-                       test_i18ngrep "CONFLICT (rename/delete).*Version B\^0 of y/d left in tree at y/d~B\^0" out &&
-                       test_i18ngrep "Error: Refusing to lose untracked file at y/e; writing to y/e~B\^0 instead" out &&
+                       test_grep "CONFLICT (rename/delete).*Version B\^0 of y/d left in tree at y/d~B\^0" out &&
+                       test_grep "Error: Refusing to lose untracked file at y/e; writing to y/e~B\^0 instead" out &&
 
                        git ls-files -s >out &&
                        test_line_count = 3 out &&
@@ -3377,7 +3377,7 @@ test_expect_success '10c1: Overwrite untracked with dir rename/rename(1to2)' '
                if test "$GIT_TEST_MERGE_ALGORITHM" = ort
                then
                        test_path_is_missing .git/MERGE_HEAD &&
-                       test_i18ngrep "error: The following untracked working tree files would be overwritten by merge" err &&
+                       test_grep "error: The following untracked working tree files would be overwritten by merge" err &&
 
                        git ls-files -s >out &&
                        test_line_count = 4 out &&
@@ -3386,8 +3386,8 @@ test_expect_success '10c1: Overwrite untracked with dir rename/rename(1to2)' '
                        git ls-files -o >out &&
                        test_line_count = 3 out
                else
-                       test_i18ngrep "CONFLICT (rename/rename)" out &&
-                       test_i18ngrep "Refusing to lose untracked file at y/c; adding as y/c~B\^0 instead" out &&
+                       test_grep "CONFLICT (rename/rename)" out &&
+                       test_grep "Refusing to lose untracked file at y/c; adding as y/c~B\^0 instead" out &&
 
                        git ls-files -s >out &&
                        test_line_count = 6 out &&
@@ -3428,7 +3428,7 @@ test_expect_success '10c2: Overwrite untracked with dir rename/rename(1to2), oth
                if test "$GIT_TEST_MERGE_ALGORITHM" = ort
                then
                        test_path_is_missing .git/MERGE_HEAD &&
-                       test_i18ngrep "error: The following untracked working tree files would be overwritten by merge" err &&
+                       test_grep "error: The following untracked working tree files would be overwritten by merge" err &&
 
                        git ls-files -s >out &&
                        test_line_count = 4 out &&
@@ -3437,8 +3437,8 @@ test_expect_success '10c2: Overwrite untracked with dir rename/rename(1to2), oth
                        git ls-files -o >out &&
                        test_line_count = 3 out
                else
-                       test_i18ngrep "CONFLICT (rename/rename)" out &&
-                       test_i18ngrep "Refusing to lose untracked file at y/c; adding as y/c~HEAD instead" out &&
+                       test_grep "CONFLICT (rename/rename)" out &&
+                       test_grep "Refusing to lose untracked file at y/c; adding as y/c~HEAD instead" out &&
 
                        git ls-files -s >out &&
                        test_line_count = 6 out &&
@@ -3517,7 +3517,7 @@ test_expect_success '10d: Delete untracked with dir rename/rename(2to1)' '
                if test "$GIT_TEST_MERGE_ALGORITHM" = ort
                then
                        test_path_is_missing .git/MERGE_HEAD &&
-                       test_i18ngrep "error: The following untracked working tree files would be overwritten by merge" err &&
+                       test_grep "error: The following untracked working tree files would be overwritten by merge" err &&
 
                        git ls-files -s >out &&
                        test_line_count = 6 out &&
@@ -3526,8 +3526,8 @@ test_expect_success '10d: Delete untracked with dir rename/rename(2to1)' '
                        git ls-files -o >out &&
                        test_line_count = 3 out
                else
-                       test_i18ngrep "CONFLICT (rename/rename)" out &&
-                       test_i18ngrep "Refusing to lose untracked file at y/wham" out &&
+                       test_grep "CONFLICT (rename/rename)" out &&
+                       test_grep "Refusing to lose untracked file at y/wham" out &&
 
                        git ls-files -s >out &&
                        test_line_count = 6 out &&
@@ -3606,7 +3606,7 @@ test_expect_merge_algorithm failure success '10e: Does git complain about untrac
                echo random >z/c &&
 
                git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
-               test_i18ngrep ! "following untracked working tree files would be overwritten by merge" err &&
+               test_grep ! "following untracked working tree files would be overwritten by merge" err &&
 
                git ls-files -s >out &&
                test_line_count = 3 out &&
@@ -3690,9 +3690,9 @@ test_expect_success '11a: Avoid losing dirty contents with simple rename' '
                if test "$GIT_TEST_MERGE_ALGORITHM" = ort
                then
                        test_path_is_missing .git/MERGE_HEAD &&
-                       test_i18ngrep "error: Your local changes to the following files would be overwritten by merge" err
+                       test_grep "error: Your local changes to the following files would be overwritten by merge" err
                else
-                       test_i18ngrep "Refusing to lose dirty file at z/c" out &&
+                       test_grep "Refusing to lose dirty file at z/c" out &&
 
                        git ls-files -s >out &&
                        test_line_count = 2 out &&
@@ -3770,10 +3770,10 @@ test_expect_success '11b: Avoid losing dirty file involved in directory rename'
                then
                        test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
                        test_path_is_missing .git/MERGE_HEAD &&
-                       test_i18ngrep "error: Your local changes to the following files would be overwritten by merge" err
+                       test_grep "error: Your local changes to the following files would be overwritten by merge" err
                else
                        git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
-                       test_i18ngrep "Refusing to lose dirty file at z/c" out &&
+                       test_grep "Refusing to lose dirty file at z/c" out &&
 
                        git ls-files -s >out &&
                        test_line_count = 3 out &&
@@ -3853,9 +3853,9 @@ test_expect_success '11c: Avoid losing not-uptodate with rename + D/F conflict'
                if test "$GIT_TEST_MERGE_ALGORITHM" = ort
                then
                        test_path_is_missing .git/MERGE_HEAD &&
-                       test_i18ngrep "error: Your local changes to the following files would be overwritten by merge" err
+                       test_grep "error: Your local changes to the following files would be overwritten by merge" err
                else
-                       test_i18ngrep "following files would be overwritten by merge" err
+                       test_grep "following files would be overwritten by merge" err
                fi &&
 
                grep -q stuff y/c &&
@@ -3927,9 +3927,9 @@ test_expect_success '11d: Avoid losing not-uptodate with rename + D/F conflict'
                if test "$GIT_TEST_MERGE_ALGORITHM" = ort
                then
                        test_path_is_missing .git/MERGE_HEAD &&
-                       test_i18ngrep "error: Your local changes to the following files would be overwritten by merge" err
+                       test_grep "error: Your local changes to the following files would be overwritten by merge" err
                else
-                       test_i18ngrep "Refusing to lose dirty file at z/c" out &&
+                       test_grep "Refusing to lose dirty file at z/c" out &&
 
                        git ls-files -s >out &&
                        test_line_count = 4 out &&
@@ -4013,10 +4013,10 @@ test_expect_success '11e: Avoid deleting not-uptodate with dir rename/rename(1to
                if test "$GIT_TEST_MERGE_ALGORITHM" = ort
                then
                        test_path_is_missing .git/MERGE_HEAD &&
-                       test_i18ngrep "error: Your local changes to the following files would be overwritten by merge" err
+                       test_grep "error: Your local changes to the following files would be overwritten by merge" err
                else
-                       test_i18ngrep "CONFLICT (rename/rename)" out &&
-                       test_i18ngrep "Refusing to lose dirty file at y/c" out &&
+                       test_grep "CONFLICT (rename/rename)" out &&
+                       test_grep "Refusing to lose dirty file at y/c" out &&
 
                        git ls-files -s >out &&
                        test_line_count = 7 out &&
@@ -4102,10 +4102,10 @@ test_expect_success '11f: Avoid deleting not-uptodate with dir rename/rename(2to
                if test "$GIT_TEST_MERGE_ALGORITHM" = ort
                then
                        test_path_is_missing .git/MERGE_HEAD &&
-                       test_i18ngrep "error: Your local changes to the following files would be overwritten by merge" err
+                       test_grep "error: Your local changes to the following files would be overwritten by merge" err
                else
-                       test_i18ngrep "CONFLICT (rename/rename)" out &&
-                       test_i18ngrep "Refusing to lose dirty file at y/wham" out &&
+                       test_grep "CONFLICT (rename/rename)" out &&
+                       test_grep "Refusing to lose dirty file at y/wham" out &&
 
                        git ls-files -s >out &&
                        test_line_count = 4 out &&
@@ -5417,8 +5417,8 @@ test_expect_success '13a(conflict): messages for newly added files' '
 
                test_must_fail git merge -s recursive B^0 >out 2>err &&
 
-               test_i18ngrep CONFLICT..file.location.*z/e/f.added.in.B^0.*y/e/f out &&
-               test_i18ngrep CONFLICT..file.location.*z/d.added.in.B^0.*y/d out &&
+               test_grep CONFLICT..file.location.*z/e/f.added.in.B^0.*y/e/f out &&
+               test_grep CONFLICT..file.location.*z/d.added.in.B^0.*y/d out &&
 
                git ls-files >paths &&
                ! grep z/ paths &&
@@ -5441,8 +5441,8 @@ test_expect_success '13a(info): messages for newly added files' '
 
                git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
 
-               test_i18ngrep Path.updated:.*z/e/f.added.in.B^0.*y/e/f out &&
-               test_i18ngrep Path.updated:.*z/d.added.in.B^0.*y/d out &&
+               test_grep Path.updated:.*z/e/f.added.in.B^0.*y/e/f out &&
+               test_grep Path.updated:.*z/d.added.in.B^0.*y/d out &&
 
                git ls-files >paths &&
                ! grep z/ paths &&
@@ -5507,8 +5507,8 @@ test_expect_success '13b(conflict): messages for transitive rename with conflict
 
                test_must_fail git merge -s recursive B^0 >out 2>err &&
 
-               test_i18ngrep CONFLICT.*content.*Merge.conflict.in.y/d out &&
-               test_i18ngrep CONFLICT..file.location.*x/d.renamed.to.z/d.*moved.to.y/d out &&
+               test_grep CONFLICT.*content.*Merge.conflict.in.y/d out &&
+               test_grep CONFLICT..file.location.*x/d.renamed.to.z/d.*moved.to.y/d out &&
 
                git ls-files >paths &&
                ! grep z/ paths &&
@@ -5529,8 +5529,8 @@ test_expect_success '13b(info): messages for transitive rename with conflicted c
 
                test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
 
-               test_i18ngrep CONFLICT.*content.*Merge.conflict.in.y/d out &&
-               test_i18ngrep Path.updated:.*x/d.renamed.to.z/d.in.B^0.*moving.it.to.y/d out &&
+               test_grep CONFLICT.*content.*Merge.conflict.in.y/d out &&
+               test_grep Path.updated:.*x/d.renamed.to.z/d.in.B^0.*moving.it.to.y/d out &&
 
                git ls-files >paths &&
                ! grep z/ paths &&
@@ -5593,7 +5593,7 @@ test_expect_success '13c(conflict): messages for rename/rename(1to1) via transit
 
                test_must_fail git merge -s recursive B^0 >out 2>err &&
 
-               test_i18ngrep CONFLICT..file.location.*x/d.renamed.to.z/d.*moved.to.y/d out &&
+               test_grep CONFLICT..file.location.*x/d.renamed.to.z/d.*moved.to.y/d out &&
 
                git ls-files >paths &&
                ! grep z/ paths &&
@@ -5614,7 +5614,7 @@ test_expect_success '13c(info): messages for rename/rename(1to1) via transitive
 
                git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
 
-               test_i18ngrep Path.updated:.*x/d.renamed.to.z/d.in.B^0.*moving.it.to.y/d out &&
+               test_grep Path.updated:.*x/d.renamed.to.z/d.in.B^0.*moving.it.to.y/d out &&
 
                git ls-files >paths &&
                ! grep z/ paths &&
@@ -5682,8 +5682,8 @@ test_expect_success '13d(conflict): messages for rename/rename(1to1) via dual tr
 
                test_must_fail git merge -s recursive B^0 >out 2>err &&
 
-               test_i18ngrep CONFLICT..file.location.*a/y.renamed.to.b/y.*moved.to.d/y out &&
-               test_i18ngrep CONFLICT..file.location.*a/y.renamed.to.c/y.*moved.to.d/y out &&
+               test_grep CONFLICT..file.location.*a/y.renamed.to.b/y.*moved.to.d/y out &&
+               test_grep CONFLICT..file.location.*a/y.renamed.to.c/y.*moved.to.d/y out &&
 
                git ls-files >paths &&
                ! grep b/ paths &&
@@ -5706,8 +5706,8 @@ test_expect_success '13d(info): messages for rename/rename(1to1) via dual transi
 
                git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
 
-               test_i18ngrep Path.updated.*a/y.renamed.to.b/y.*moving.it.to.d/y out &&
-               test_i18ngrep Path.updated.*a/y.renamed.to.c/y.*moving.it.to.d/y out &&
+               test_grep Path.updated.*a/y.renamed.to.b/y.*moving.it.to.d/y out &&
+               test_grep Path.updated.*a/y.renamed.to.c/y.*moving.it.to.d/y out &&
 
                git ls-files >paths &&
                ! grep b/ paths &&
@@ -5821,9 +5821,9 @@ test_expect_success '13e: directory rename detection in recursive case' '
 
                git -c merge.directoryRenames=conflict merge -s recursive C^0 >out 2>err &&
 
-               test_i18ngrep ! CONFLICT out &&
-               test_i18ngrep ! BUG: err &&
-               test_i18ngrep ! core.dumped err &&
+               test_grep ! CONFLICT out &&
+               test_grep ! BUG: err &&
+               test_grep ! core.dumped err &&
                test_must_be_empty err &&
 
                git ls-files >paths &&
index a61f20c22fe62031da12af45bd8ca427782043bf..7677c5f08d0e8fb66dd243c05e9a9b892b6114df 100755 (executable)
@@ -178,7 +178,7 @@ test_expect_success 'merge-recursive, when index==head but head!=HEAD' '
        test_when_finished "git clean -fd" &&  # Do not leave untracked around
        # Merge B & F, with B as "head"
        git merge-recursive A -- B F > out &&
-       test_i18ngrep "Already up to date" out
+       test_grep "Already up to date" out
 '
 
 test_expect_success 'recursive, when file has staged changes not matching HEAD nor what a merge would give' '
@@ -194,7 +194,7 @@ test_expect_success 'recursive, when file has staged changes not matching HEAD n
        test_must_fail git merge -s recursive E^0 2>err &&
        git rev-parse --verify :subdir/a >actual &&
        test_cmp expect actual &&
-       test_i18ngrep "changes to the following files would be overwritten" err
+       test_grep "changes to the following files would be overwritten" err
 '
 
 test_expect_success 'recursive, when file has staged changes matching what a merge would give' '
@@ -210,7 +210,7 @@ test_expect_success 'recursive, when file has staged changes matching what a mer
        test_must_fail git merge -s recursive E^0 2>err &&
        git rev-parse --verify :subdir/a >actual &&
        test_cmp expect actual &&
-       test_i18ngrep "changes to the following files would be overwritten" err
+       test_grep "changes to the following files would be overwritten" err
 '
 
 test_expect_success 'octopus, unrelated file touched' '
index 93cd2869b12897b5246a3a977f0cdaf1b2911663..b95b064311b6762da86c6239a93651edd9dede78 100755 (executable)
@@ -21,8 +21,8 @@ test_expect_success 'rename/delete' '
        git commit -m "delete" &&
 
        test_must_fail git merge --strategy=recursive rename >output &&
-       test_i18ngrep "CONFLICT (rename/delete): A.* renamed .*to B.* in rename" output &&
-       test_i18ngrep "CONFLICT (rename/delete): A.*deleted in HEAD." output
+       test_grep "CONFLICT (rename/delete): A.* renamed .*to B.* in rename" output &&
+       test_grep "CONFLICT (rename/delete): A.*deleted in HEAD." output
 '
 
 test_done
index fd21c1a48639bfc176986bfcd5a65c0aa82fd392..b059475ed033440bad42a059341b63176314e642 100755 (executable)
@@ -375,7 +375,7 @@ test_expect_success '2c: Modify b & add c VS rename b->c' '
                export GIT_MERGE_VERBOSITY &&
                test_must_fail git merge -s recursive B^0 >out 2>err &&
 
-               test_i18ngrep "CONFLICT (.*/add):" out &&
+               test_grep "CONFLICT (.*/add):" out &&
                test_must_be_empty err &&
 
                git ls-files -s >index_files &&
index 07067bb347955b146b9654b353e9db2b8b2cd323..ca15e6dd6da94bc1bac8286e9e36a196cde7a797 100755 (executable)
@@ -308,13 +308,13 @@ test_expect_success 'fail if the index has unresolved entries' '
 
        test_must_fail git merge "$c5" &&
        test_must_fail git merge "$c5" 2> out &&
-       test_i18ngrep "not possible because you have unmerged files" out &&
+       test_grep "not possible because you have unmerged files" out &&
        git add -u &&
        test_must_fail git merge "$c5" 2> out &&
-       test_i18ngrep "You have not concluded your merge" out &&
+       test_grep "You have not concluded your merge" out &&
        rm -f .git/MERGE_HEAD &&
        test_must_fail git merge "$c5" 2> out &&
-       test_i18ngrep "Your local changes to the following files would be overwritten by merge:" out
+       test_grep "Your local changes to the following files would be overwritten by merge:" out
 '
 
 test_expect_success 'merge-recursive remove conflict' '
@@ -713,7 +713,7 @@ test_expect_success 'merge-recursive remembers the names of all base trees' '
        test_must_fail git -c merge.verbosity=5 merge-recursive $(cat trees) -- $c1 $c3 >out &&
 
        # ...but make sure it fails in the expected way
-       test_i18ngrep CONFLICT.*rename/rename out &&
+       test_grep CONFLICT.*rename/rename out &&
 
        # merge-recursive prints in reverse order, but we do not care
        sort <trees >expect &&
index b16031465f34b20600cadd51c2f620ec64ae0e54..0f611c40031cd6209ddd7f9180537eb9f166013e 100755 (executable)
@@ -151,7 +151,7 @@ test_expect_success 'refuse two-project merge by default, quit before --autostas
        echo change >>one.t &&
        git diff >expect &&
        test_must_fail git merge --autostash five 2>err &&
-       test_i18ngrep ! "stash" err &&
+       test_grep ! "stash" err &&
        git diff >actual &&
        test_cmp expect actual
 '
@@ -169,7 +169,7 @@ test_expect_success 'two-project merge with --allow-unrelated-histories with --a
        echo change >>one.t &&
        git diff one.t >expect &&
        git merge --allow-unrelated-histories --autostash five 2>err &&
-       test_i18ngrep "Applied autostash." err &&
+       test_grep "Applied autostash." err &&
        git diff one.t >actual &&
        test_cmp expect actual
 '
index c0b7bd7c3fe55303d62caed5f4c02368d2e3fd3c..4f4376421e7da28e22f58258061bf58f3a8bc0c8 100755 (executable)
@@ -104,12 +104,12 @@ test_expect_success 'will not overwrite unstaged changes in renamed file' '
        if test "$GIT_TEST_MERGE_ALGORITHM" = ort
        then
                test_must_fail git merge c1a >out 2>err &&
-               test_i18ngrep "would be overwritten by merge" err &&
+               test_grep "would be overwritten by merge" err &&
                test_cmp important other.c &&
                test_path_is_missing .git/MERGE_HEAD
        else
                test_must_fail git merge c1a >out &&
-               test_i18ngrep "Refusing to lose dirty file at other.c" out &&
+               test_grep "Refusing to lose dirty file at other.c" out &&
                test_path_is_file other.c~HEAD &&
                test $(git hash-object other.c~HEAD) = $(git rev-parse c1a:c1.c) &&
                test_cmp important other.c
index c9a86f2e947e4a2943438cc5adcaaeab39a465d9..f1440697d1842aa6cd26a28b1afa395d8c89a6e5 100755 (executable)
@@ -479,7 +479,7 @@ test_expect_merge_algorithm failure success !FAIL_PREREQS 'directory/submodule c
                # We do not want files within the submodule to prevent the
                # merge from starting; we should not be writing to such paths
                # anyway.
-               test_i18ngrep ! "refusing to lose untracked file at" err
+               test_grep ! "refusing to lose untracked file at" err
        )
 '
 
index 69509d0c11db655a12fc6ed20215ed25976c46eb..4a188cefb091287a304e9ebdf8f4edc56e9c03f9 100755 (executable)
@@ -41,7 +41,7 @@ test_expect_success 'gc does not leave behind pid file' '
 
 test_expect_success 'gc --gobbledegook' '
        test_expect_code 129 git gc --nonsense 2>err &&
-       test_i18ngrep "[Uu]sage: git gc" err
+       test_grep "[Uu]sage: git gc" err
 '
 
 test_expect_success 'gc -h with invalid configuration' '
@@ -52,7 +52,7 @@ test_expect_success 'gc -h with invalid configuration' '
                echo "[gc] pruneexpire = CORRUPT" >>.git/config &&
                test_expect_code 129 git gc -h >usage 2>&1
        ) &&
-       test_i18ngrep "[Uu]sage" broken/usage
+       test_grep "[Uu]sage" broken/usage
 '
 
 test_expect_success 'gc is not aborted due to a stale symref' '
@@ -155,7 +155,7 @@ test_expect_success 'auto gc with too many loose objects does not attempt to cre
        test_commit "$(test_oid obj4)" &&
 
        git gc --auto 2>err &&
-       test_i18ngrep ! "^warning:" err &&
+       test_grep ! "^warning:" err &&
        ls .git/objects/pack/pack-*.pack | sort >post_packs &&
        comm -1 -3 existing_packs post_packs >new &&
        comm -2 -3 existing_packs post_packs >del &&
@@ -166,15 +166,15 @@ test_expect_success 'auto gc with too many loose objects does not attempt to cre
 test_expect_success 'gc --no-quiet' '
        GIT_PROGRESS_DELAY=0 git -c gc.writeCommitGraph=true gc --no-quiet >stdout 2>stderr &&
        test_must_be_empty stdout &&
-       test_i18ngrep "Computing commit graph generation numbers" stderr
+       test_grep "Computing commit graph generation numbers" stderr
 '
 
 test_expect_success TTY 'with TTY: gc --no-quiet' '
        test_terminal env GIT_PROGRESS_DELAY=0 \
                git -c gc.writeCommitGraph=true gc --no-quiet >stdout 2>stderr &&
        test_must_be_empty stdout &&
-       test_i18ngrep "Enumerating objects" stderr &&
-       test_i18ngrep "Computing commit graph generation numbers" stderr
+       test_grep "Enumerating objects" stderr &&
+       test_grep "Computing commit graph generation numbers" stderr
 '
 
 test_expect_success 'gc --quiet' '
@@ -321,7 +321,7 @@ test_expect_success 'background auto gc does not run if gc.log is present and re
        test_config gc.autodetach true &&
        echo fleem >.git/gc.log &&
        git gc --auto 2>err &&
-       test_i18ngrep "^warning:" err &&
+       test_grep "^warning:" err &&
        test_config gc.logexpiry 5.days &&
        test-tool chmtime =-345600 .git/gc.log &&
        git gc --auto &&
index f136ea76f7f8a04c7b2b9c5dbf38ca1a50260819..879a6dce601110ac4bf8c59a51b32654e8726dcf 100755 (executable)
@@ -296,7 +296,7 @@ test_expect_success 'git mv error on conflicted file' '
        EOF
 
        test_must_fail git mv conflict newname 2>actual &&
-       test_i18ngrep "conflicted" actual
+       test_grep "conflicted" actual
 '
 
 test_expect_success 'git mv should overwrite symlink to a file' '
@@ -482,7 +482,7 @@ test_expect_success 'checking out a commit before submodule moved needs manual u
        git mv sub sub2 &&
        git commit -m "moved sub to sub2" &&
        git checkout -q HEAD^ 2>actual &&
-       test_i18ngrep "^warning: unable to rmdir '\''sub2'\'':" actual &&
+       test_grep "^warning: unable to rmdir '\''sub2'\'':" actual &&
        git status -s sub2 >actual &&
        echo "?? sub2/" >expected &&
        test_cmp expected actual &&
index 9b46da7aaa7e59c08bf799262a21056fe7417d86..05079c7246482cb5a50bf1579914ef810e309cd7 100755 (executable)
@@ -30,21 +30,21 @@ test_expect_success PERL 'git reset -p' '
        test_write_lines n y | git reset -p >output &&
        verify_state dir/foo work head &&
        verify_saved_state bar &&
-       test_i18ngrep "Unstage" output
+       test_grep "Unstage" output
 '
 
 test_expect_success PERL 'git reset -p HEAD^' '
        test_write_lines n y | git reset -p HEAD^ >output &&
        verify_state dir/foo work parent &&
        verify_saved_state bar &&
-       test_i18ngrep "Apply" output
+       test_grep "Apply" output
 '
 
 test_expect_success PERL 'git reset -p HEAD^^{tree}' '
        test_write_lines n y | git reset -p HEAD^^{tree} >output &&
        verify_state dir/foo work parent &&
        verify_saved_state bar &&
-       test_i18ngrep "Apply" output
+       test_grep "Apply" output
 '
 
 test_expect_success PERL 'git reset -p HEAD^:dir/foo (blob fails)' '
index a0b67a0b843b3411de060ca9f4e507e59d516dd2..d20e5709f91cd7b1a0107bf4ee1df6809001bd30 100755 (executable)
@@ -42,7 +42,7 @@ test_expect_success PERL 'reset -p' '
 
        git ls-files >actual &&
        test_must_be_empty actual &&
-       test_i18ngrep "Unstage" output
+       test_grep "Unstage" output
 '
 
 test_expect_success 'reset --soft is a no-op' '
index af5ea406db3bf5748d3cf1a1ae16abd3b6fd9363..020db201d57c3c38e75a0e2b9a38c2b3455a9309 100755 (executable)
@@ -161,19 +161,19 @@ test_expect_success 'error conditions' '
        git rm fileA.t &&
 
        test_must_fail git reset --pathspec-from-file=list --patch 2>err &&
-       test_i18ngrep -e "options .--pathspec-from-file. and .--patch. cannot be used together" err &&
+       test_grep -e "options .--pathspec-from-file. and .--patch. cannot be used together" err &&
 
        test_must_fail git reset --pathspec-from-file=list -- fileA.t 2>err &&
-       test_i18ngrep -e ".--pathspec-from-file. and pathspec arguments cannot be used together" err &&
+       test_grep -e ".--pathspec-from-file. and pathspec arguments cannot be used together" err &&
 
        test_must_fail git reset --pathspec-file-nul 2>err &&
-       test_i18ngrep -e "the option .--pathspec-file-nul. requires .--pathspec-from-file." err &&
+       test_grep -e "the option .--pathspec-file-nul. requires .--pathspec-from-file." err &&
 
        test_must_fail git reset --soft --pathspec-from-file=list 2>err &&
-       test_i18ngrep -e "fatal: Cannot do soft reset with paths" err &&
+       test_grep -e "fatal: Cannot do soft reset with paths" err &&
 
        test_must_fail git reset --hard --pathspec-from-file=list 2>err &&
-       test_i18ngrep -e "fatal: Cannot do hard reset with paths" err
+       test_grep -e "fatal: Cannot do hard reset with paths" err
 '
 
 test_done
index 772480a345ffa0703432e070e5e85ec56a322c00..7ee180f81da4f9e0ae312f73a87ab9775ef18e1d 100755 (executable)
@@ -238,7 +238,7 @@ test_expect_success '"reset --keep HEAD^" fails with pending merge' '
        git reset --hard third &&
        test_must_fail git merge branch1 &&
        test_must_fail git reset --keep HEAD^ 2>err.log &&
-       test_i18ngrep "middle of a merge" err.log
+       test_grep "middle of a merge" err.log
 '
 
 # The next test will test the following:
@@ -264,7 +264,7 @@ test_expect_success '"reset --keep HEAD" fails with pending merge' '
        git reset --hard third &&
        test_must_fail git merge branch1 &&
        test_must_fail git reset --keep HEAD 2>err.log &&
-       test_i18ngrep "middle of a merge" err.log
+       test_grep "middle of a merge" err.log
 '
 
 test_expect_success '--merge is ok with added/deleted merge' '
@@ -290,7 +290,7 @@ test_expect_success '--keep fails with added/deleted merge' '
        git diff --exit-code file3 &&
        git diff --exit-code branch3 file3 &&
        test_must_fail git reset --keep HEAD 2>err.log &&
-       test_i18ngrep "middle of a merge" err.log
+       test_grep "middle of a merge" err.log
 '
 
 test_done
index 35b9e6ed6b5ba337d9fb4603281500656313ed1d..c2550f3028a84018012a7f2e76c7140093c129cc 100755 (executable)
@@ -217,7 +217,7 @@ test_expect_success 'switch to another branch while carrying a deletion' '
        git rm two &&
 
        test_must_fail git checkout simple 2>errs &&
-       test_i18ngrep overwritten errs &&
+       test_grep overwritten errs &&
 
        test_must_fail git read-tree --quiet -m -u HEAD simple 2>errs &&
        test_must_be_empty errs
@@ -229,7 +229,7 @@ test_expect_success 'checkout to detach HEAD (with advice declined)' '
        git checkout -f renamer &&
        git clean -f &&
        git checkout renamer^ 2>messages &&
-       test_i18ngrep "HEAD is now at $rev" messages &&
+       test_grep "HEAD is now at $rev" messages &&
        test_line_count = 1 messages &&
        H=$(git rev-parse --verify HEAD) &&
        M=$(git show-ref -s --verify refs/heads/main) &&
index 0ef7b78457368fd8f0e403907e7d582e97e62248..1a310a45fd35765167c8f2c06ea85dca8cab9749 100755 (executable)
@@ -735,7 +735,7 @@ test_expect_success MINGW 'handle clean & core.longpaths = false nicely' '
        test_must_fail git clean -xdf 2>.git/err &&
        # grepping for a strerror string is unportable but it is OK here with
        # MINGW prereq
-       test_i18ngrep "too long" .git/err
+       test_grep "too long" .git/err
 '
 
 test_expect_success 'clean untracked paths by pathspec' '
index d9fbabb2b9d810d0c39cd504d105bcb8ba3e568c..00c1f1aab1304c127a5dccdaeff62d7213b7a9e5 100755 (executable)
@@ -60,7 +60,7 @@ test_expect_success 'submodule init aborts on missing .gitmodules file' '
        git update-index --add --cacheinfo 160000,$(git rev-parse HEAD),sub &&
        # missing the .gitmodules file here
        test_must_fail git submodule init 2>actual &&
-       test_i18ngrep "No url found for submodule path" actual
+       test_grep "No url found for submodule path" actual
 '
 
 test_expect_success 'submodule update aborts on missing .gitmodules file' '
@@ -68,7 +68,7 @@ test_expect_success 'submodule update aborts on missing .gitmodules file' '
        git update-index --add --cacheinfo 160000,$(git rev-parse HEAD),sub &&
        # missing the .gitmodules file here
        git submodule update sub 2>actual &&
-       test_i18ngrep "Submodule path .sub. not initialized" actual
+       test_grep "Submodule path .sub. not initialized" actual
 '
 
 test_expect_success 'submodule update aborts on missing gitmodules url' '
@@ -100,7 +100,7 @@ test_expect_success 'status should ignore inner git repo when not added' '
        ) &&
        test_must_fail git submodule status inner 2>output.err &&
        rm -fr inner &&
-       test_i18ngrep "^error: .*did not match any file(s) known to git" output.err
+       test_grep "^error: .*did not match any file(s) known to git" output.err
 '
 
 test_expect_success 'setup - repository in init subdirectory' '
@@ -196,7 +196,7 @@ test_expect_success 'redirected submodule add does not show progress' '
        git -C addtest submodule add "file://$submodurl/parent" submod-redirected \
                2>err &&
        ! grep % err &&
-       test_i18ngrep ! "Checking connectivity" err
+       test_grep ! "Checking connectivity" err
 '
 
 test_expect_success 'redirected submodule add --progress does show progress' '
@@ -263,7 +263,7 @@ test_expect_success 'submodule add relays add --dry-run stderr' '
                cd addtest &&
                : >.git/index.lock &&
                ! git submodule add "$submodurl" sub-while-locked 2>output.err &&
-               test_i18ngrep "^fatal: .*index\.lock" output.err &&
+               test_grep "^fatal: .*index\.lock" output.err &&
                test_path_is_missing sub-while-locked
        )
 '
@@ -405,7 +405,7 @@ test_expect_success 'submodule add in subdirectory with relative path should fai
                cd addtest/sub &&
                test_must_fail git submodule add ../../ submod3 2>../../output.err
        ) &&
-       test_i18ngrep toplevel output.err
+       test_grep toplevel output.err
 '
 
 test_expect_success 'setup - add an example entry to .gitmodules' '
@@ -486,7 +486,7 @@ test_expect_success 'status should still be "missing" after initializing' '
 
 test_failure_with_unknown_submodule () {
        test_must_fail git submodule $1 no-such-submodule 2>output.err &&
-       test_i18ngrep "^error: .*no-such-submodule" output.err
+       test_grep "^error: .*no-such-submodule" output.err
 }
 
 test_expect_success 'init should fail with unknown submodule' '
@@ -644,7 +644,7 @@ test_expect_success 'update --init' '
        test_must_fail git config submodule.example.url &&
 
        git submodule update init 2> update.out &&
-       test_i18ngrep "not initialized" update.out &&
+       test_grep "not initialized" update.out &&
        test_must_fail git rev-parse --resolve-git-dir init/.git &&
 
        git submodule update --init init &&
@@ -661,7 +661,7 @@ test_expect_success 'update --init from subdirectory' '
        (
                cd sub &&
                git submodule update ../init 2>update.out &&
-               test_i18ngrep "not initialized" update.out &&
+               test_grep "not initialized" update.out &&
                test_must_fail git rev-parse --resolve-git-dir ../init/.git &&
 
                git submodule update --init ../init
@@ -1121,7 +1121,7 @@ test_expect_success 'submodule deinit from subdirectory' '
                cd sub &&
                git submodule deinit ../init >../output
        ) &&
-       test_i18ngrep "\\.\\./init" output &&
+       test_grep "\\.\\./init" output &&
        test -z "$(git config --get-regexp "submodule\.example\.")" &&
        test -n "$(git config --get-regexp "submodule\.example2\.")" &&
        test -f example2/.git &&
@@ -1136,8 +1136,8 @@ test_expect_success 'submodule deinit . deinits all initialized submodules' '
        git submodule deinit . >actual &&
        test -z "$(git config --get-regexp "submodule\.example\.")" &&
        test -z "$(git config --get-regexp "submodule\.example2\.")" &&
-       test_i18ngrep "Cleared directory .init" actual &&
-       test_i18ngrep "Cleared directory .example2" actual &&
+       test_grep "Cleared directory .init" actual &&
+       test_grep "Cleared directory .example2" actual &&
        rmdir init example2
 '
 
@@ -1149,8 +1149,8 @@ test_expect_success 'submodule deinit --all deinits all initialized submodules'
        git submodule deinit --all >actual &&
        test -z "$(git config --get-regexp "submodule\.example\.")" &&
        test -z "$(git config --get-regexp "submodule\.example2\.")" &&
-       test_i18ngrep "Cleared directory .init" actual &&
-       test_i18ngrep "Cleared directory .example2" actual &&
+       test_grep "Cleared directory .init" actual &&
+       test_grep "Cleared directory .example2" actual &&
        rmdir init example2
 '
 
@@ -1160,8 +1160,8 @@ test_expect_success 'submodule deinit deinits a submodule when its work tree is
        git submodule deinit init example2 >actual &&
        test -z "$(git config --get-regexp "submodule\.example\.")" &&
        test -z "$(git config --get-regexp "submodule\.example2\.")" &&
-       test_i18ngrep ! "Cleared directory .init" actual &&
-       test_i18ngrep "Cleared directory .example2" actual &&
+       test_grep ! "Cleared directory .init" actual &&
+       test_grep "Cleared directory .example2" actual &&
        rmdir init
 '
 
@@ -1173,7 +1173,7 @@ test_expect_success 'submodule deinit fails when the submodule contains modifica
        test -f example2/.git &&
        git submodule deinit -f init >actual &&
        test -z "$(git config --get-regexp "submodule\.example\.")" &&
-       test_i18ngrep "Cleared directory .init" actual &&
+       test_grep "Cleared directory .init" actual &&
        rmdir init
 '
 
@@ -1185,7 +1185,7 @@ test_expect_success 'submodule deinit fails when the submodule contains untracke
        test -f example2/.git &&
        git submodule deinit -f init >actual &&
        test -z "$(git config --get-regexp "submodule\.example\.")" &&
-       test_i18ngrep "Cleared directory .init" actual &&
+       test_grep "Cleared directory .init" actual &&
        rmdir init
 '
 
@@ -1200,30 +1200,30 @@ test_expect_success 'submodule deinit fails when the submodule HEAD does not mat
        test -f example2/.git &&
        git submodule deinit -f init >actual &&
        test -z "$(git config --get-regexp "submodule\.example\.")" &&
-       test_i18ngrep "Cleared directory .init" actual &&
+       test_grep "Cleared directory .init" actual &&
        rmdir init
 '
 
 test_expect_success 'submodule deinit is silent when used on an uninitialized submodule' '
        git submodule update --init &&
        git submodule deinit init >actual &&
-       test_i18ngrep "Submodule .example. (.*) unregistered for path .init" actual &&
-       test_i18ngrep "Cleared directory .init" actual &&
+       test_grep "Submodule .example. (.*) unregistered for path .init" actual &&
+       test_grep "Cleared directory .init" actual &&
        git submodule deinit init >actual &&
-       test_i18ngrep ! "Submodule .example. (.*) unregistered for path .init" actual &&
-       test_i18ngrep "Cleared directory .init" actual &&
+       test_grep ! "Submodule .example. (.*) unregistered for path .init" actual &&
+       test_grep "Cleared directory .init" actual &&
        git submodule deinit . >actual &&
-       test_i18ngrep ! "Submodule .example. (.*) unregistered for path .init" actual &&
-       test_i18ngrep "Submodule .example2. (.*) unregistered for path .example2" actual &&
-       test_i18ngrep "Cleared directory .init" actual &&
+       test_grep ! "Submodule .example. (.*) unregistered for path .init" actual &&
+       test_grep "Submodule .example2. (.*) unregistered for path .example2" actual &&
+       test_grep "Cleared directory .init" actual &&
        git submodule deinit . >actual &&
-       test_i18ngrep ! "Submodule .example. (.*) unregistered for path .init" actual &&
-       test_i18ngrep ! "Submodule .example2. (.*) unregistered for path .example2" actual &&
-       test_i18ngrep "Cleared directory .init" actual &&
+       test_grep ! "Submodule .example. (.*) unregistered for path .init" actual &&
+       test_grep ! "Submodule .example2. (.*) unregistered for path .example2" actual &&
+       test_grep "Cleared directory .init" actual &&
        git submodule deinit --all >actual &&
-       test_i18ngrep ! "Submodule .example. (.*) unregistered for path .init" actual &&
-       test_i18ngrep ! "Submodule .example2. (.*) unregistered for path .example2" actual &&
-       test_i18ngrep "Cleared directory .init" actual &&
+       test_grep ! "Submodule .example. (.*) unregistered for path .init" actual &&
+       test_grep ! "Submodule .example2. (.*) unregistered for path .example2" actual &&
+       test_grep "Cleared directory .init" actual &&
        rmdir init example2
 '
 
index ff09443a0a4b0a5a4fdf1e14adc7e5d964a14dd6..19b6135d11744031c8777c3bd66c752d6ab9ba75 100755 (executable)
@@ -163,7 +163,7 @@ test_expect_success '"git submodule sync" should update submodule URLs - subdire
                cd sub &&
                git submodule sync >../../output
        ) &&
-       test_i18ngrep "\\.\\./submodule" output &&
+       test_grep "\\.\\./submodule" output &&
        test -d "$(
                cd super-clone/submodule &&
                git config remote.origin.url
@@ -194,7 +194,7 @@ test_expect_success '"git submodule sync --recursive" should update all submodul
                cd sub &&
                git submodule sync --recursive >../../output
        ) &&
-       test_i18ngrep "\\.\\./submodule/sub-submodule" output &&
+       test_grep "\\.\\./submodule/sub-submodule" output &&
        test -d "$(
                cd super-clone/submodule &&
                git config remote.origin.url
index 00651c25cb4089a4d7334ad00f6ebc8e51bafb0f..8491b8c58b97f0597a5fcc27448b3d99abdbe9c9 100755 (executable)
@@ -945,7 +945,7 @@ test_expect_success 'submodule update places git-dir in superprojects git-dir re
        git clone super_update_r super_update_r2 &&
        (cd super_update_r2 &&
         git submodule update --init --recursive >actual &&
-        test_i18ngrep "Submodule path .submodule/subsubmodule.: checked out" actual &&
+        test_grep "Submodule path .submodule/subsubmodule.: checked out" actual &&
         (cd submodule/subsubmodule &&
          git log > ../../expected
         ) &&
@@ -1025,7 +1025,7 @@ test_expect_success 'submodule update clone shallow submodule outside of depth'
                # unadvertised objects, so restrict this test to v0.
                test_must_fail env GIT_TEST_PROTOCOL_VERSION=0 \
                        git submodule update --init --depth=1 2>actual &&
-               test_i18ngrep "Direct fetching of that commit failed." actual &&
+               test_grep "Direct fetching of that commit failed." actual &&
                git -C ../submodule config uploadpack.allowReachableSHA1InWant true &&
                git submodule update --init --depth=1 >actual &&
                git -C submodule log --oneline >out &&
@@ -1039,7 +1039,7 @@ test_expect_success 'submodule update --recursive drops module name before recur
          git checkout HEAD^
         ) &&
         git submodule update --recursive deeper/submodule >actual &&
-        test_i18ngrep "Submodule path .deeper/submodule/subsubmodule.: checked out" actual
+        test_grep "Submodule path .deeper/submodule/subsubmodule.: checked out" actual
        )
 '
 
index c0167944abdad3f3bd34c4c5fe29f9e7ec1afcf2..31271f8e0a61f7b071c770f9efad0e235920f37f 100755 (executable)
@@ -45,7 +45,7 @@ test_expect_success 'configuration parsing with error' '
        (
                cd repo &&
                test_must_fail test-tool submodule-config "" s 2>actual &&
-               test_i18ngrep "bad config" actual
+               test_grep "bad config" actual
        )
 '
 
@@ -101,7 +101,7 @@ test_expect_success 'error in history of one submodule config lets continue, std
                                >actual \
                                2>actual_stderr &&
                test_cmp expect_error actual &&
-               test_i18ngrep "submodule-blob $sha1:.gitmodules" actual_stderr >/dev/null
+               test_grep "submodule-blob $sha1:.gitmodules" actual_stderr >/dev/null
        )
 '
 
index 101afff30f67683ec03e92e4a89cead6badac521..24f30e3bf9c6440eca92838b42ae330a856f3fb6 100755 (executable)
@@ -13,13 +13,13 @@ test_expect_success 'create embedded repository' '
 test_expect_success 'git-add on embedded repository warns' '
        test_when_finished "git rm --cached -f embed" &&
        git add embed 2>stderr &&
-       test_i18ngrep warning stderr
+       test_grep warning stderr
 '
 
 test_expect_success '--no-warn-embedded-repo suppresses warning' '
        test_when_finished "git rm --cached -f embed" &&
        git add --no-warn-embedded-repo embed 2>stderr &&
-       test_i18ngrep ! warning stderr
+       test_grep ! warning stderr
 '
 
 test_expect_success 'no warning when updating entry' '
@@ -27,14 +27,14 @@ test_expect_success 'no warning when updating entry' '
        git add embed &&
        git -C embed commit --allow-empty -m two &&
        git add embed 2>stderr &&
-       test_i18ngrep ! warning stderr
+       test_grep ! warning stderr
 '
 
 test_expect_success 'submodule add does not warn' '
        test_when_finished "git rm -rf submodule .gitmodules" &&
        git -c protocol.file.allow=always \
                submodule add ./embed submodule 2>stderr &&
-       test_i18ngrep ! warning stderr
+       test_grep ! warning stderr
 '
 
 test_done
index 7cf72b9a07671c671c5ed7bbe275125ee7c142e6..2ab566e71787ab6f1f77eb97b6b476c5f3fbacbc 100755 (executable)
@@ -41,7 +41,7 @@ test_expect_success 'remove ./ protection from .gitmodules url' '
 test_expect_success 'clone rejects unprotected dash' '
        test_when_finished "rm -rf dst" &&
        test_must_fail git clone --recurse-submodules . dst 2>err &&
-       test_i18ngrep ignoring err
+       test_grep ignoring err
 '
 
 test_expect_success 'fsck rejects unprotected dash' '
@@ -63,7 +63,7 @@ test_expect_success 'trailing backslash is handled correctly' '
        mv .new .gitmodules &&
        git commit -am "Add testmodule" &&
        test_must_fail git clone --verbose --recurse-submodules . dolly 2>err &&
-       test_i18ngrep ! "unknown option" err
+       test_grep ! "unknown option" err
 '
 
 test_expect_success 'fsck rejects missing URL scheme' '
index 2f4b25dfd7e3860e47c0acdd3a9eeabff7f5504e..5e3051da8bb362fe01b80f5bc20ef0d736886a22 100755 (executable)
@@ -21,7 +21,7 @@ test_expect_success 'create submodule with dash in path' '
 test_expect_success 'clone rejects unprotected dash' '
        test_when_finished "rm -rf dst" &&
        git clone --recurse-submodules . dst 2>err &&
-       test_i18ngrep ignoring err
+       test_grep ignoring err
 '
 
 test_expect_success 'fsck rejects unprotected dash' '
@@ -46,7 +46,7 @@ test_expect_success MINGW 'submodule paths disallows trailing spaces' '
        git -C super update-ref refs/heads/main $commit &&
 
        test_must_fail git clone --recurse-submodules super dst 2>err &&
-       test_i18ngrep "sub " err
+       test_grep "sub " err
 '
 
 test_done
index 0d0c3f2c683122dbf611cd0ac57bce86166acab3..35a31acd4d7e26bc3bf8f42853d80593488c9227 100755 (executable)
@@ -238,7 +238,7 @@ test_expect_success 'fsck detects non-blob .gitmodules' '
                git ls-tree HEAD | sed s/subdir/.gitmodules/ | git mktree &&
 
                test_must_fail git fsck 2>output &&
-               test_i18ngrep gitmodulesBlob output
+               test_grep gitmodulesBlob output
        )
 '
 
@@ -252,8 +252,8 @@ test_expect_success 'fsck detects corrupt .gitmodules' '
                git commit -m "broken gitmodules" &&
 
                git fsck 2>output &&
-               test_i18ngrep gitmodulesParse output &&
-               test_i18ngrep ! "bad config" output
+               test_grep gitmodulesParse output &&
+               test_grep ! "bad config" output
        )
 '
 
@@ -275,7 +275,7 @@ test_expect_success WINDOWS 'prevent git~1 squatting on Windows' '
                hash="$(echo x | git hash-object -w --stdin)" &&
                test_must_fail git update-index --add \
                        --cacheinfo 160000,$rev,d\\a 2>err &&
-               test_i18ngrep "Invalid path" err &&
+               test_grep "Invalid path" err &&
                git -c core.protectNTFS=false update-index --add \
                        --cacheinfo 100644,$modules,.gitmodules \
                        --cacheinfo 160000,$rev,c \
@@ -289,7 +289,7 @@ test_expect_success WINDOWS 'prevent git~1 squatting on Windows' '
        then
                test_must_fail git -c core.protectNTFS=false \
                        clone --recurse-submodules squatting squatting-clone 2>err &&
-               test_i18ngrep -e "directory not empty" -e "not an empty directory" err &&
+               test_grep -e "directory not empty" -e "not an empty directory" err &&
                ! grep gitdir squatting-clone/d/a/git~2
        fi
 '
@@ -314,7 +314,7 @@ test_expect_success 'git dirs of sibling submodules must not be nested' '
                git commit -m nested
        ) &&
        test_must_fail git clone --recurse-submodules nested clone 2>err &&
-       test_i18ngrep "is inside git dir" err
+       test_grep "is inside git dir" err
 '
 
 test_done
index 5fcaa0b4f2aa5e7b533f0dc0beb5426f2997645a..4dca8d97a772d63566a9ea19121d8019cafb766c 100755 (executable)
@@ -555,7 +555,7 @@ test_expect_success 'commit without staging files fails and displays hints' '
        git commit -m initial &&
        echo "changes" >>file &&
        test_must_fail git commit -m update >actual &&
-       test_i18ngrep "no changes added to commit (use \"git add\" and/or \"git commit -a\")" actual
+       test_grep "no changes added to commit (use \"git add\" and/or \"git commit -a\")" actual
 '
 
 test_done
index fb5417d5e7e044f5bfbbe1b4ef8f6b42857c4e73..3d8500a52e50c004544c6df62cf123b8aeb62a99 100755 (executable)
@@ -21,7 +21,7 @@ test_expect_success 'initial status' '
        echo bongo bongo >file &&
        git add file &&
        git status >actual &&
-       test_i18ngrep "No commits yet" actual
+       test_grep "No commits yet" actual
 '
 
 test_expect_success 'fail initial amend' '
@@ -141,7 +141,7 @@ test_expect_success 'template "emptyness" check does not kick in with -F' '
 test_expect_success 'template "emptyness" check' '
        git checkout HEAD file && echo >>file && git add file &&
        test_must_fail git commit -t file 2>err &&
-       test_i18ngrep "did not edit" err
+       test_grep "did not edit" err
 '
 
 test_expect_success 'setup: commit message from file' '
@@ -671,7 +671,7 @@ test_expect_success 'commit a file whose name is a dash' '
        git add ./- &&
        test_tick &&
        git commit -m "add dash" >output </dev/null &&
-       test_i18ngrep " changed, 5 insertions" output
+       test_grep " changed, 5 insertions" output
 '
 
 test_expect_success '--only works on to-be-born branch' '
index b5bf7de7cd66c781657173bac3074cacb1107bf1..61c8e810ccede4618594570ea3b747f5c51e6d1c 100755 (executable)
@@ -706,14 +706,14 @@ test_expect_success 'cleanup commit message (whitespace config, -m)' '
 test_expect_success 'message shows author when it is not equal to committer' '
        echo >>negative &&
        git commit -e -m "sample" -a &&
-       test_i18ngrep \
+       test_grep \
          "^# Author: *A U Thor <author@example.com>\$" \
          .git/COMMIT_EDITMSG
 '
 
 test_expect_success 'message shows date when it is explicitly set' '
        git commit --allow-empty -e -m foo --date="2010-01-02T03:04:05" &&
-       test_i18ngrep \
+       test_grep \
          "^# Date: *Sat Jan 2 03:04:05 2010 +0000" \
          .git/COMMIT_EDITMSG
 '
@@ -728,7 +728,7 @@ test_expect_success AUTOIDENT 'message shows committer when it is automatic' '
        ) &&
        # the ident is calculated from the system, so we cannot
        # check the actual value, only that it is there
-       test_i18ngrep "^# Committer: " .git/COMMIT_EDITMSG
+       test_grep "^# Committer: " .git/COMMIT_EDITMSG
 '
 
 write_script .git/FAKE_EDITOR <<EOF
@@ -860,9 +860,9 @@ try_commit () {
        GIT_EDITOR=.git/FAKE_EDITOR git commit -a $* $use_template &&
        case "$use_template" in
        '')
-               test_i18ngrep ! "^## Custom template" .git/COMMIT_EDITMSG ;;
+               test_grep ! "^## Custom template" .git/COMMIT_EDITMSG ;;
        *)
-               test_i18ngrep "^## Custom template" .git/COMMIT_EDITMSG ;;
+               test_grep "^## Custom template" .git/COMMIT_EDITMSG ;;
        esac
 }
 
@@ -870,53 +870,53 @@ try_commit_status_combo () {
 
        test_expect_success 'commit' '
                try_commit "" &&
-               test_i18ngrep "^# Changes to be committed:" .git/COMMIT_EDITMSG
+               test_grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
        '
 
        test_expect_success 'commit --status' '
                try_commit --status &&
-               test_i18ngrep "^# Changes to be committed:" .git/COMMIT_EDITMSG
+               test_grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
        '
 
        test_expect_success 'commit --no-status' '
                try_commit --no-status &&
-               test_i18ngrep ! "^# Changes to be committed:" .git/COMMIT_EDITMSG
+               test_grep ! "^# Changes to be committed:" .git/COMMIT_EDITMSG
        '
 
        test_expect_success 'commit with commit.status = yes' '
                test_config commit.status yes &&
                try_commit "" &&
-               test_i18ngrep "^# Changes to be committed:" .git/COMMIT_EDITMSG
+               test_grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
        '
 
        test_expect_success 'commit with commit.status = no' '
                test_config commit.status no &&
                try_commit "" &&
-               test_i18ngrep ! "^# Changes to be committed:" .git/COMMIT_EDITMSG
+               test_grep ! "^# Changes to be committed:" .git/COMMIT_EDITMSG
        '
 
        test_expect_success 'commit --status with commit.status = yes' '
                test_config commit.status yes &&
                try_commit --status &&
-               test_i18ngrep "^# Changes to be committed:" .git/COMMIT_EDITMSG
+               test_grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
        '
 
        test_expect_success 'commit --no-status with commit.status = yes' '
                test_config commit.status yes &&
                try_commit --no-status &&
-               test_i18ngrep ! "^# Changes to be committed:" .git/COMMIT_EDITMSG
+               test_grep ! "^# Changes to be committed:" .git/COMMIT_EDITMSG
        '
 
        test_expect_success 'commit --status with commit.status = no' '
                test_config commit.status no &&
                try_commit --status &&
-               test_i18ngrep "^# Changes to be committed:" .git/COMMIT_EDITMSG
+               test_grep "^# Changes to be committed:" .git/COMMIT_EDITMSG
        '
 
        test_expect_success 'commit --no-status with commit.status = no' '
                test_config commit.status no &&
                try_commit --no-status &&
-               test_i18ngrep ! "^# Changes to be committed:" .git/COMMIT_EDITMSG
+               test_grep ! "^# Changes to be committed:" .git/COMMIT_EDITMSG
        '
 
 }
@@ -930,13 +930,13 @@ try_commit_status_combo
 test_expect_success 'commit --status with custom comment character' '
        test_config core.commentchar ";" &&
        try_commit --status &&
-       test_i18ngrep "^; Changes to be committed:" .git/COMMIT_EDITMSG
+       test_grep "^; Changes to be committed:" .git/COMMIT_EDITMSG
 '
 
 test_expect_success 'switch core.commentchar' '
        test_commit "#foo" foo &&
        GIT_EDITOR=.git/FAKE_EDITOR git -c core.commentChar=auto commit --amend &&
-       test_i18ngrep "^; Changes to be committed:" .git/COMMIT_EDITMSG
+       test_grep "^; Changes to be committed:" .git/COMMIT_EDITMSG
 '
 
 test_expect_success 'switch core.commentchar but out of options' '
index d050091345b3929dc8e578409d45069b932c9733..46566d529e8725fb3b26e7664f2f8d44c2458a1c 100755 (executable)
@@ -37,19 +37,19 @@ test_expect_success 'setup' '
 
 test_expect_success 'status clean' '
        git status >output &&
-       test_i18ngrep "nothing to commit" output
+       test_grep "nothing to commit" output
 '
 
 test_expect_success 'commit --dry-run -a clean' '
        test_must_fail git commit --dry-run -a >output &&
-       test_i18ngrep "nothing to commit" output
+       test_grep "nothing to commit" output
 '
 
 test_expect_success 'status with modified file in submodule' '
        (cd sub && git reset --hard) &&
        echo "changed" >sub/foo &&
        git status >output &&
-       test_i18ngrep "modified:   sub (modified content)" output
+       test_grep "modified:   sub (modified content)" output
 '
 
 test_expect_success 'status with modified file in submodule (porcelain)' '
@@ -73,7 +73,7 @@ test_expect_success 'status with modified file in submodule (short)' '
 test_expect_success 'status with added file in submodule' '
        (cd sub && git reset --hard && echo >foo && git add foo) &&
        git status >output &&
-       test_i18ngrep "modified:   sub (modified content)" output
+       test_grep "modified:   sub (modified content)" output
 '
 
 test_expect_success 'status with added file in submodule (porcelain)' '
@@ -96,12 +96,12 @@ test_expect_success 'status with untracked file in submodule' '
        (cd sub && git reset --hard) &&
        echo "content" >sub/new-file &&
        git status >output &&
-       test_i18ngrep "modified:   sub (untracked content)" output
+       test_grep "modified:   sub (untracked content)" output
 '
 
 test_expect_success 'status -uno with untracked file in submodule' '
        git status -uno >output &&
-       test_i18ngrep "^nothing to commit" output
+       test_grep "^nothing to commit" output
 '
 
 test_expect_success 'status with untracked file in submodule (porcelain)' '
@@ -122,7 +122,7 @@ test_expect_success 'status with added and untracked file in submodule' '
        (cd sub && git reset --hard && echo >foo && git add foo) &&
        echo "content" >sub/new-file &&
        git status >output &&
-       test_i18ngrep "modified:   sub (modified content, untracked content)" output
+       test_grep "modified:   sub (modified content, untracked content)" output
 '
 
 test_expect_success 'status with added and untracked file in submodule (porcelain)' '
@@ -140,7 +140,7 @@ test_expect_success 'status with modified file in modified submodule' '
        (cd sub && echo "next change" >foo && git commit -m "next change" foo) &&
        echo "changed" >sub/foo &&
        git status >output &&
-       test_i18ngrep "modified:   sub (new commits, modified content)" output
+       test_grep "modified:   sub (new commits, modified content)" output
 '
 
 test_expect_success 'status with modified file in modified submodule (porcelain)' '
@@ -155,7 +155,7 @@ test_expect_success 'status with modified file in modified submodule (porcelain)
 test_expect_success 'status with added file in modified submodule' '
        (cd sub && git reset --hard && echo >foo && git add foo) &&
        git status >output &&
-       test_i18ngrep "modified:   sub (new commits, modified content)" output
+       test_grep "modified:   sub (new commits, modified content)" output
 '
 
 test_expect_success 'status with added file in modified submodule (porcelain)' '
@@ -170,7 +170,7 @@ test_expect_success 'status with untracked file in modified submodule' '
        (cd sub && git reset --hard) &&
        echo "content" >sub/new-file &&
        git status >output &&
-       test_i18ngrep "modified:   sub (new commits, untracked content)" output
+       test_grep "modified:   sub (new commits, untracked content)" output
 '
 
 test_expect_success 'status with untracked file in modified submodule (porcelain)' '
@@ -184,7 +184,7 @@ test_expect_success 'status with added and untracked file in modified submodule'
        (cd sub && git reset --hard && echo >foo && git add foo) &&
        echo "content" >sub/new-file &&
        git status >output &&
-       test_i18ngrep "modified:   sub (new commits, modified content, untracked content)" output
+       test_grep "modified:   sub (new commits, modified content, untracked content)" output
 '
 
 test_expect_success 'status with added and untracked file in modified submodule (porcelain)' '
@@ -209,7 +209,7 @@ test_expect_success 'setup .git file for sub' '
 test_expect_success 'status with added file in modified submodule with .git file' '
        (cd sub && git reset --hard && echo >foo && git add foo) &&
        git status >output &&
-       test_i18ngrep "modified:   sub (new commits, modified content)" output
+       test_grep "modified:   sub (new commits, modified content)" output
 '
 
 test_expect_success 'status with a lot of untracked files in the submodule' '
@@ -234,12 +234,12 @@ test_expect_success 'rm submodule contents' '
 
 test_expect_success 'status clean (empty submodule dir)' '
        git status >output &&
-       test_i18ngrep "nothing to commit" output
+       test_grep "nothing to commit" output
 '
 
 test_expect_success 'status -a clean (empty submodule dir)' '
        test_must_fail git commit --dry-run -a >output &&
-       test_i18ngrep "nothing to commit" output
+       test_grep "nothing to commit" output
 '
 
 cat >status_expect <<\EOF
index 916470c48bd69cb245eaf0e9045cd3f1519b7ba6..c3281b192e49ce130d3babc4f9fda39acd3d69b8 100755 (executable)
@@ -89,7 +89,7 @@ test_expect_success 'submodule log is stripped out too with -v' '
                export GIT_EDITOR &&
                test_must_fail git commit -a -v 2>err
        ) &&
-       test_i18ngrep "Aborting commit due to empty commit message." err
+       test_grep "Aborting commit due to empty commit message." err
 '
 
 test_expect_success 'verbose diff is stripped out with set core.commentChar' '
@@ -98,7 +98,7 @@ test_expect_success 'verbose diff is stripped out with set core.commentChar' '
                export GIT_EDITOR &&
                test_must_fail git -c core.commentchar=";" commit -a -v 2>err
        ) &&
-       test_i18ngrep "Aborting commit due to empty commit message." err
+       test_grep "Aborting commit due to empty commit message." err
 '
 
 test_expect_success 'status does not verbose without --verbose' '
index 6928fd89f5d887b2f7a3feb9263b39d77affe9aa..1607df4c2a9f89ce16c09e1c7e4c568004d00caa 100755 (executable)
@@ -19,7 +19,7 @@ test_expect_success 'status -h in broken repository' '
                echo "[status] showuntrackedfiles = CORRUPT" >>.git/config &&
                test_expect_code 129 git status -h >usage 2>&1
        ) &&
-       test_i18ngrep "[Uu]sage" broken/usage
+       test_grep "[Uu]sage" broken/usage
 '
 
 test_expect_success 'commit -h in broken repository' '
@@ -31,7 +31,7 @@ test_expect_success 'commit -h in broken repository' '
                echo "[status] showuntrackedfiles = CORRUPT" >>.git/config &&
                test_expect_code 129 git commit -h >usage 2>&1
        ) &&
-       test_i18ngrep "[Uu]sage" broken/usage
+       test_grep "[Uu]sage" broken/usage
 '
 
 test_expect_success 'create upstream branch' '
@@ -72,7 +72,7 @@ test_expect_success 'setup' '
 '
 
 test_expect_success 'status (1)' '
-       test_i18ngrep "use \"git rm --cached <file>\.\.\.\" to unstage" output
+       test_grep "use \"git rm --cached <file>\.\.\.\" to unstage" output
 '
 
 strip_comments () {
@@ -1542,12 +1542,12 @@ test_expect_success 'git commit will commit a staged but ignored submodule' '
        git config --add -f .gitmodules submodule.subname.path sm &&
        git config --add submodule.subname.ignore all &&
        git status -s --ignore-submodules=dirty >output &&
-       test_i18ngrep "^M. sm" output &&
+       test_grep "^M. sm" output &&
        GIT_EDITOR="echo hello >>\"\$1\"" &&
        export GIT_EDITOR &&
        git commit -uno &&
        git status -s --ignore-submodules=dirty >output &&
-       test_i18ngrep ! "^M. sm" output
+       test_grep ! "^M. sm" output
 '
 
 test_expect_success 'git commit --dry-run will show a staged but ignored submodule' '
@@ -1572,13 +1572,13 @@ EOF
        git commit -uno --dry-run >output &&
        test_cmp expect output &&
        git status -s --ignore-submodules=dirty >output &&
-       test_i18ngrep "^M. sm" output
+       test_grep "^M. sm" output
 '
 
 test_expect_success 'git commit -m will commit a staged but ignored submodule' '
        git commit -uno -m message &&
        git status -s --ignore-submodules=dirty >output &&
-       test_i18ngrep ! "^M. sm" output &&
+       test_grep ! "^M. sm" output &&
        git config --remove-section submodule.subname &&
        git config -f .gitmodules  --remove-section submodule.subname
 '
@@ -1591,7 +1591,7 @@ test_expect_success 'show stash info with "--show-stash"' '
        git stash &&
        git status >expected_default &&
        git status --show-stash >expected_with_stash &&
-       test_i18ngrep "^Your stash currently has 1 entry$" expected_with_stash
+       test_grep "^Your stash currently has 1 entry$" expected_with_stash
 '
 
 test_expect_success 'no stash info with "--show-stash --no-show-stash"' '
@@ -1618,14 +1618,14 @@ test_expect_success 'no additional info if no stash entries' '
 test_expect_success '"No commits yet" should be noted in status output' '
        git checkout --orphan empty-branch-1 &&
        git status >output &&
-       test_i18ngrep "No commits yet" output
+       test_grep "No commits yet" output
 '
 
 test_expect_success '"No commits yet" should not be noted in status output' '
        git checkout --orphan empty-branch-2 &&
        test_commit test-commit-1 &&
        git status >output &&
-       test_i18ngrep ! "No commits yet" output
+       test_grep ! "No commits yet" output
 '
 
 test_expect_success '"Initial commit" should be noted in commit template' '
@@ -1633,7 +1633,7 @@ test_expect_success '"Initial commit" should be noted in commit template' '
        touch to_be_committed_1 &&
        git add to_be_committed_1 &&
        git commit --dry-run >output &&
-       test_i18ngrep "Initial commit" output
+       test_grep "Initial commit" output
 '
 
 test_expect_success '"Initial commit" should not be noted in commit template' '
@@ -1642,7 +1642,7 @@ test_expect_success '"Initial commit" should not be noted in commit template' '
        touch to_be_committed_2 &&
        git add to_be_committed_2 &&
        git commit --dry-run >output &&
-       test_i18ngrep ! "Initial commit" output
+       test_grep ! "Initial commit" output
 '
 
 test_expect_success '--no-optional-locks prevents index update' '
index 5d890949f75b5acb4ef9334a41c080ece60c1653..fd8c8f8f0bccf81eed7711e178912753ac200d72 100755 (executable)
@@ -99,7 +99,7 @@ test_expect_success '--amend option with empty author' '
        echo "Empty author test" >>foo &&
        test_tick &&
        test_must_fail git commit -a -m "empty author" --amend 2>err &&
-       test_i18ngrep "empty ident" err
+       test_grep "empty ident" err
 '
 
 test_expect_success '--amend option with missing author' '
@@ -112,7 +112,7 @@ test_expect_success '--amend option with missing author' '
        echo "Missing author test" >>foo &&
        test_tick &&
        test_must_fail git commit -a -m "malformed author" --amend 2>err &&
-       test_i18ngrep "empty ident" err
+       test_grep "empty ident" err
 '
 
 test_expect_success '--reset-author makes the commit ours even with --amend option' '
index 9ab2ae2f3b23807b4ee1eb3fcfaf62d9c1fe7bc3..b37de0af49ff400e89b86271dd9b63b894dad56e 100755 (executable)
@@ -15,7 +15,7 @@ test_expect_success 'empty name and missing email' '
                sane_unset GIT_AUTHOR_EMAIL &&
                GIT_AUTHOR_NAME= &&
                test_must_fail git commit --allow-empty -m foo 2>err &&
-               test_i18ngrep ! "(null)" err
+               test_grep ! "(null)" err
        )
 '
 
@@ -40,8 +40,8 @@ test_expect_success 'empty configured name does not auto-detect' '
                sane_unset GIT_AUTHOR_NAME &&
                test_must_fail \
                        git -c user.name= commit --allow-empty -m foo 2>err &&
-               test_i18ngrep "empty ident name" err &&
-               test_i18ngrep "Author identity unknown" err
+               test_grep "empty ident name" err &&
+               test_grep "Author identity unknown" err
        )
 '
 
@@ -50,8 +50,8 @@ test_expect_success 'empty configured name does not auto-detect for committer' '
                sane_unset GIT_COMMITTER_NAME &&
                test_must_fail \
                        git -c user.name= commit --allow-empty -m foo 2>err &&
-               test_i18ngrep "empty ident name" err &&
-               test_i18ngrep "Committer identity unknown" err
+               test_grep "empty ident name" err &&
+               test_grep "Committer identity unknown" err
        )
 '
 
index 8348e3ae7db70d9c6a65606c3b400c485a3a8719..7ee69ecdd4aa2c15dbde3ba0a976d986bff17fb3 100755 (executable)
@@ -322,14 +322,14 @@ do
                        rm -f marker &&
                        git status >actual &&
                        test_path_is_file marker &&
-                       test_i18ngrep ! "Changes not staged for commit:" actual &&
+                       test_grep ! "Changes not staged for commit:" actual &&
                        if test $uc_val = true
                        then
-                               test_i18ngrep ! "Untracked files:" actual
+                               test_grep ! "Untracked files:" actual
                        fi &&
                        if test $uc_val = false
                        then
-                               test_i18ngrep "Untracked files:" actual
+                               test_grep "Untracked files:" actual
                        fi &&
                        rm -f marker
                '
index 184b2589893b78ef1e77521a6a9e7f0e5b514de9..3b63c34a309de5e13a0c52c365d02289c6aa87f3 100755 (executable)
@@ -13,27 +13,27 @@ test_expect_success setup '
 
 test_expect_success 'no warning if hook is not ignored' '
        git commit --allow-empty -m "more" 2>message &&
-       test_i18ngrep ! -e "hook was ignored" message
+       test_grep ! -e "hook was ignored" message
 '
 
 test_expect_success POSIXPERM 'warning if hook is ignored' '
        test_hook --disable pre-commit &&
        git commit --allow-empty -m "even more" 2>message &&
-       test_i18ngrep -e "hook was ignored" message
+       test_grep -e "hook was ignored" message
 '
 
 test_expect_success POSIXPERM 'no warning if advice.ignoredHook set to false' '
        test_config advice.ignoredHook false &&
        test_hook --disable pre-commit &&
        git commit --allow-empty -m "even more" 2>message &&
-       test_i18ngrep ! -e "hook was ignored" message
+       test_grep ! -e "hook was ignored" message
 '
 
 test_expect_success 'no warning if unset advice.ignoredHook and hook removed' '
        test_hook --remove pre-commit &&
        test_unconfig advice.ignoredHook &&
        git commit --allow-empty -m "even more" 2>message &&
-       test_i18ngrep ! -e "hook was ignored" message
+       test_grep ! -e "hook was ignored" message
 '
 
 test_done
index 22bf5c7e5dc108fabfc165e948733d6221855785..a9210d3a3a92213728a32599defe664e1def0ffe 100755 (executable)
@@ -21,81 +21,81 @@ test_expect_success 'setup' '
 
 test_expect_success 'status no-options' '
        git status >actual &&
-       test_i18ngrep "renamed:" actual
+       test_grep "renamed:" actual
 '
 
 test_expect_success 'status --no-renames' '
        git status --no-renames >actual &&
-       test_i18ngrep "deleted:" actual &&
-       test_i18ngrep "new file:" actual
+       test_grep "deleted:" actual &&
+       test_grep "new file:" actual
 '
 
 test_expect_success 'status.renames inherits from diff.renames false' '
        git -c diff.renames=false status >actual &&
-       test_i18ngrep "deleted:" actual &&
-       test_i18ngrep "new file:" actual
+       test_grep "deleted:" actual &&
+       test_grep "new file:" actual
 '
 
 test_expect_success 'status.renames inherits from diff.renames true' '
        git -c diff.renames=true status >actual &&
-       test_i18ngrep "renamed:" actual
+       test_grep "renamed:" actual
 '
 
 test_expect_success 'status.renames overrides diff.renames false' '
        git -c diff.renames=true -c status.renames=false status >actual &&
-       test_i18ngrep "deleted:" actual &&
-       test_i18ngrep "new file:" actual
+       test_grep "deleted:" actual &&
+       test_grep "new file:" actual
 '
 
 test_expect_success 'status.renames overrides from diff.renames true' '
        git -c diff.renames=false -c status.renames=true status >actual &&
-       test_i18ngrep "renamed:" actual
+       test_grep "renamed:" actual
 '
 
 test_expect_success 'status status.renames=false' '
        git -c status.renames=false status >actual &&
-       test_i18ngrep "deleted:" actual &&
-       test_i18ngrep "new file:" actual
+       test_grep "deleted:" actual &&
+       test_grep "new file:" actual
 '
 
 test_expect_success 'status status.renames=true' '
        git -c status.renames=true status >actual &&
-       test_i18ngrep "renamed:" actual
+       test_grep "renamed:" actual
 '
 
 test_expect_success 'commit honors status.renames=false' '
        git -c status.renames=false commit --dry-run >actual &&
-       test_i18ngrep "deleted:" actual &&
-       test_i18ngrep "new file:" actual
+       test_grep "deleted:" actual &&
+       test_grep "new file:" actual
 '
 
 test_expect_success 'commit honors status.renames=true' '
        git -c status.renames=true commit --dry-run >actual &&
-       test_i18ngrep "renamed:" actual
+       test_grep "renamed:" actual
 '
 
 test_expect_success 'status config overridden' '
        git -c status.renames=true status --no-renames >actual &&
-       test_i18ngrep "deleted:" actual &&
-       test_i18ngrep "new file:" actual
+       test_grep "deleted:" actual &&
+       test_grep "new file:" actual
 '
 
 test_expect_success 'status score=100%' '
        git status -M=100% >actual &&
-       test_i18ngrep "deleted:" actual &&
-       test_i18ngrep "new file:" actual &&
+       test_grep "deleted:" actual &&
+       test_grep "new file:" actual &&
 
        git status --find-renames=100% >actual &&
-       test_i18ngrep "deleted:" actual &&
-       test_i18ngrep "new file:" actual
+       test_grep "deleted:" actual &&
+       test_grep "new file:" actual
 '
 
 test_expect_success 'status score=01%' '
        git status -M=01% >actual &&
-       test_i18ngrep "renamed:" actual &&
+       test_grep "renamed:" actual &&
 
        git status --find-renames=01% >actual &&
-       test_i18ngrep "renamed:" actual
+       test_grep "renamed:" actual
 '
 
 test_expect_success 'copies not overridden by find-renames' '
@@ -103,12 +103,12 @@ test_expect_success 'copies not overridden by find-renames' '
        git add copy &&
 
        git -c status.renames=copies status -M=01% >actual &&
-       test_i18ngrep "copied:" actual &&
-       test_i18ngrep "renamed:" actual &&
+       test_grep "copied:" actual &&
+       test_grep "renamed:" actual &&
 
        git -c status.renames=copies status --find-renames=01% >actual &&
-       test_i18ngrep "copied:" actual &&
-       test_i18ngrep "renamed:" actual
+       test_grep "copied:" actual &&
+       test_grep "renamed:" actual
 '
 
 test_done
index ad011bb9f158034171c04e76722b183eece45576..c97c550021e837a6fd6e59f260352673d92e85da 100755 (executable)
@@ -141,25 +141,25 @@ test_expect_success 'error conditions' '
        >empty_list &&
 
        test_must_fail git commit --pathspec-from-file=list --interactive -m "Commit" 2>err &&
-       test_i18ngrep -e "options .--pathspec-from-file. and .--interactive/--patch. cannot be used together" err &&
+       test_grep -e "options .--pathspec-from-file. and .--interactive/--patch. cannot be used together" err &&
 
        test_must_fail git commit --pathspec-from-file=list --patch -m "Commit" 2>err &&
-       test_i18ngrep -e "options .--pathspec-from-file. and .--interactive/--patch. cannot be used together" err &&
+       test_grep -e "options .--pathspec-from-file. and .--interactive/--patch. cannot be used together" err &&
 
        test_must_fail git commit --pathspec-from-file=list --all -m "Commit" 2>err &&
-       test_i18ngrep -e "options .--pathspec-from-file. and .-a. cannot be used together" err &&
+       test_grep -e "options .--pathspec-from-file. and .-a. cannot be used together" err &&
 
        test_must_fail git commit --pathspec-from-file=list -m "Commit" -- fileA.t 2>err &&
-       test_i18ngrep -e ".--pathspec-from-file. and pathspec arguments cannot be used together" err &&
+       test_grep -e ".--pathspec-from-file. and pathspec arguments cannot be used together" err &&
 
        test_must_fail git commit --pathspec-file-nul -m "Commit" 2>err &&
-       test_i18ngrep -e "the option .--pathspec-file-nul. requires .--pathspec-from-file." err &&
+       test_grep -e "the option .--pathspec-file-nul. requires .--pathspec-from-file." err &&
 
        test_must_fail git commit --pathspec-from-file=empty_list --include -m "Commit" 2>err &&
-       test_i18ngrep -e "No paths with --include/--only does not make sense." err &&
+       test_grep -e "No paths with --include/--only does not make sense." err &&
 
        test_must_fail git commit --pathspec-from-file=empty_list --only -m "Commit" 2>err &&
-       test_i18ngrep -e "No paths with --include/--only does not make sense." err
+       test_grep -e "No paths with --include/--only does not make sense." err
 '
 
 test_done
index fdc607277c2fca64a573959b2f3ea7f35a8beaae..e5ff073099a983d0da7205d3a3325af28caf8a9b 100755 (executable)
@@ -175,7 +175,7 @@ test_expect_success 'merge -h with invalid index' '
                >.git/index &&
                test_expect_code 129 git merge -h 2>usage
        ) &&
-       test_i18ngrep "[Uu]sage: git merge" broken/usage
+       test_grep "[Uu]sage: git merge" broken/usage
 '
 
 test_expect_success 'reject non-strategy with a git-merge-foo name' '
@@ -681,7 +681,7 @@ test_debug 'git log --graph --decorate --oneline --all'
 test_expect_success 'in-index merge' '
        git reset --hard c0 &&
        git merge --no-ff -s resolve c1 >out &&
-       test_i18ngrep "Wonderful." out &&
+       test_grep "Wonderful." out &&
        verify_parents $c0 $c1
 '
 
@@ -697,7 +697,7 @@ test_expect_success 'merge with --autostash' '
        git reset --hard c1 &&
        git merge-file file file.orig file.9 &&
        git merge --autostash c2 2>err &&
-       test_i18ngrep "Applied autostash." err &&
+       test_grep "Applied autostash." err &&
        git show HEAD:file >merge-result &&
        test_cmp result.1-5 merge-result &&
        test_cmp result.1-5-9 file
@@ -708,7 +708,7 @@ test_expect_success 'merge with merge.autoStash' '
        git reset --hard c1 &&
        git merge-file file file.orig file.9 &&
        git merge c2 2>err &&
-       test_i18ngrep "Applied autostash." err &&
+       test_grep "Applied autostash." err &&
        git show HEAD:file >merge-result &&
        test_cmp result.1-5 merge-result &&
        test_cmp result.1-5-9 file
@@ -718,7 +718,7 @@ test_expect_success 'fast-forward merge with --autostash' '
        git reset --hard c0 &&
        git merge-file file file.orig file.5 &&
        git merge --autostash c1 2>err &&
-       test_i18ngrep "Applied autostash." err &&
+       test_grep "Applied autostash." err &&
        test_cmp result.1-5 file
 '
 
@@ -728,7 +728,7 @@ test_expect_success 'failed fast-forward merge with --autostash' '
        cp file.5 other &&
        test_when_finished "rm other" &&
        test_must_fail git merge --autostash c1 2>err &&
-       test_i18ngrep "Applied autostash." err &&
+       test_grep "Applied autostash." err &&
        test_cmp file.5 file
 '
 
@@ -736,7 +736,7 @@ test_expect_success 'octopus merge with --autostash' '
        git reset --hard c1 &&
        git merge-file file file.orig file.3 &&
        git merge --autostash c2 c3 2>err &&
-       test_i18ngrep "Applied autostash." err &&
+       test_grep "Applied autostash." err &&
        git show HEAD:file >merge-result &&
        test_cmp result.1-5-9 merge-result &&
        test_cmp result.1-3-5-9 file
@@ -746,7 +746,7 @@ test_expect_success 'failed merge (exit 2) with --autostash' '
        git reset --hard c1 &&
        git merge-file file file.orig file.5 &&
        test_must_fail git merge -s recursive --autostash c2 c3 2>err &&
-       test_i18ngrep "Applied autostash." err &&
+       test_grep "Applied autostash." err &&
        test_cmp result.1-5 file
 '
 
@@ -755,7 +755,7 @@ test_expect_success 'conflicted merge with --autostash, --abort restores stash'
        cp file.1 file &&
        test_must_fail git merge --autostash c7 &&
        git merge --abort 2>err &&
-       test_i18ngrep "Applied autostash." err &&
+       test_grep "Applied autostash." err &&
        test_cmp file.1 file
 '
 
@@ -767,7 +767,7 @@ test_expect_success 'completed merge (git commit) with --no-commit and --autosta
        git stash show -p MERGE_AUTOSTASH >actual &&
        test_cmp expect actual &&
        git commit 2>err &&
-       test_i18ngrep "Applied autostash." err &&
+       test_grep "Applied autostash." err &&
        git show HEAD:file >merge-result &&
        test_cmp result.1-5 merge-result &&
        test_cmp result.1-5-9 file
@@ -781,7 +781,7 @@ test_expect_success 'completed merge (git merge --continue) with --no-commit and
        git stash show -p MERGE_AUTOSTASH >actual &&
        test_cmp expect actual &&
        git merge --continue 2>err &&
-       test_i18ngrep "Applied autostash." err &&
+       test_grep "Applied autostash." err &&
        git show HEAD:file >merge-result &&
        test_cmp result.1-5 merge-result &&
        test_cmp result.1-5-9 file
@@ -795,7 +795,7 @@ test_expect_success 'aborted merge (merge --abort) with --no-commit and --autost
        git stash show -p MERGE_AUTOSTASH >actual &&
        test_cmp expect actual &&
        git merge --abort 2>err &&
-       test_i18ngrep "Applied autostash." err &&
+       test_grep "Applied autostash." err &&
        git diff >actual &&
        test_cmp expect actual
 '
@@ -808,7 +808,7 @@ test_expect_success 'aborted merge (reset --hard) with --no-commit and --autosta
        git stash show -p MERGE_AUTOSTASH >actual &&
        test_cmp expect actual &&
        git reset --hard 2>err &&
-       test_i18ngrep "Autostash exists; creating a new stash entry." err &&
+       test_grep "Autostash exists; creating a new stash entry." err &&
        git diff --exit-code
 '
 
@@ -821,7 +821,7 @@ test_expect_success 'quit merge with --no-commit and --autostash' '
        test_cmp expect actual &&
        git diff HEAD >expect &&
        git merge --quit 2>err &&
-       test_i18ngrep "Autostash exists; creating a new stash entry." err &&
+       test_grep "Autostash exists; creating a new stash entry." err &&
        git diff HEAD >actual &&
        test_cmp expect actual
 '
@@ -832,7 +832,7 @@ test_expect_success 'merge with conflicted --autostash changes' '
        git diff >expect &&
        test_when_finished "test_might_fail git stash drop" &&
        git merge --autostash c3 2>err &&
-       test_i18ngrep "Applying autostash resulted in conflicts." err &&
+       test_grep "Applying autostash resulted in conflicts." err &&
        git show HEAD:file >merge-result &&
        test_cmp result.1-9 merge-result &&
        git stash show -p >actual &&
index bd238d89b0cb07ed6a92707dcfd80ac277b75524..8cebe2dbe1be41d252657ce38f55a170e9215207 100755 (executable)
@@ -30,117 +30,117 @@ test_expect_success 'setup' '
 test_expect_success 'pull.rebase not set, ff possible' '
        git reset --hard c0 &&
        git pull . c1 2>err &&
-       test_i18ngrep ! "You have divergent branches" err
+       test_grep ! "You have divergent branches" err
 '
 
 test_expect_success 'pull.rebase not set and pull.ff=true' '
        git reset --hard c0 &&
        test_config pull.ff true &&
        git pull . c1 2>err &&
-       test_i18ngrep ! "You have divergent branches" err
+       test_grep ! "You have divergent branches" err
 '
 
 test_expect_success 'pull.rebase not set and pull.ff=false' '
        git reset --hard c0 &&
        test_config pull.ff false &&
        git pull . c1 2>err &&
-       test_i18ngrep ! "You have divergent branches" err
+       test_grep ! "You have divergent branches" err
 '
 
 test_expect_success 'pull.rebase not set and pull.ff=only' '
        git reset --hard c0 &&
        test_config pull.ff only &&
        git pull . c1 2>err &&
-       test_i18ngrep ! "You have divergent branches" err
+       test_grep ! "You have divergent branches" err
 '
 
 test_expect_success 'pull.rebase not set and --rebase given' '
        git reset --hard c0 &&
        git pull --rebase . c1 2>err &&
-       test_i18ngrep ! "You have divergent branches" err
+       test_grep ! "You have divergent branches" err
 '
 
 test_expect_success 'pull.rebase not set and --no-rebase given' '
        git reset --hard c0 &&
        git pull --no-rebase . c1 2>err &&
-       test_i18ngrep ! "You have divergent branches" err
+       test_grep ! "You have divergent branches" err
 '
 
 test_expect_success 'pull.rebase not set and --ff given' '
        git reset --hard c0 &&
        git pull --ff . c1 2>err &&
-       test_i18ngrep ! "You have divergent branches" err
+       test_grep ! "You have divergent branches" err
 '
 
 test_expect_success 'pull.rebase not set and --no-ff given' '
        git reset --hard c0 &&
        git pull --no-ff . c1 2>err &&
-       test_i18ngrep ! "You have divergent branches" err
+       test_grep ! "You have divergent branches" err
 '
 
 test_expect_success 'pull.rebase not set and --ff-only given' '
        git reset --hard c0 &&
        git pull --ff-only . c1 2>err &&
-       test_i18ngrep ! "You have divergent branches" err
+       test_grep ! "You have divergent branches" err
 '
 
 test_expect_success 'pull.rebase not set (not-fast-forward)' '
        git reset --hard c2 &&
        test_must_fail git -c color.advice=always pull . c1 2>err &&
        test_decode_color <err >decoded &&
-       test_i18ngrep "<YELLOW>hint: " decoded &&
-       test_i18ngrep "You have divergent branches" decoded
+       test_grep "<YELLOW>hint: " decoded &&
+       test_grep "You have divergent branches" decoded
 '
 
 test_expect_success 'pull.rebase not set and pull.ff=true (not-fast-forward)' '
        git reset --hard c2 &&
        test_config pull.ff true &&
        git pull . c1 2>err &&
-       test_i18ngrep ! "You have divergent branches" err
+       test_grep ! "You have divergent branches" err
 '
 
 test_expect_success 'pull.rebase not set and pull.ff=false (not-fast-forward)' '
        git reset --hard c2 &&
        test_config pull.ff false &&
        git pull . c1 2>err &&
-       test_i18ngrep ! "You have divergent branches" err
+       test_grep ! "You have divergent branches" err
 '
 
 test_expect_success 'pull.rebase not set and pull.ff=only (not-fast-forward)' '
        git reset --hard c2 &&
        test_config pull.ff only &&
        test_must_fail git pull . c1 2>err &&
-       test_i18ngrep ! "You have divergent branches" err
+       test_grep ! "You have divergent branches" err
 '
 
 test_expect_success 'pull.rebase not set and --rebase given (not-fast-forward)' '
        git reset --hard c2 &&
        git pull --rebase . c1 2>err &&
-       test_i18ngrep ! "You have divergent branches" err
+       test_grep ! "You have divergent branches" err
 '
 
 test_expect_success 'pull.rebase not set and --no-rebase given (not-fast-forward)' '
        git reset --hard c2 &&
        git pull --no-rebase . c1 2>err &&
-       test_i18ngrep ! "You have divergent branches" err
+       test_grep ! "You have divergent branches" err
 '
 
 test_expect_success 'pull.rebase not set and --ff given (not-fast-forward)' '
        git reset --hard c2 &&
        git pull --ff . c1 2>err &&
-       test_i18ngrep ! "You have divergent branches" err
+       test_grep ! "You have divergent branches" err
 '
 
 test_expect_success 'pull.rebase not set and --no-ff given (not-fast-forward)' '
        git reset --hard c2 &&
        git pull --no-ff . c1 2>err &&
-       test_i18ngrep ! "You have divergent branches" err
+       test_grep ! "You have divergent branches" err
 '
 
 test_expect_success 'pull.rebase not set and --ff-only given (not-fast-forward)' '
        git reset --hard c2 &&
        test_must_fail git pull --ff-only . c1 2>err &&
-       test_i18ngrep ! "You have divergent branches" err
+       test_grep ! "You have divergent branches" err
 '
 
 test_does_rebase () {
@@ -202,7 +202,7 @@ test_falls_back_to_full_merge () {
 test_attempts_fast_forward () {
        git reset --hard c2 &&
        test_must_fail git "$@" . c1 2>err &&
-       test_i18ngrep "Not possible to fast-forward, aborting" err
+       test_grep "Not possible to fast-forward, aborting" err
 }
 
 #
@@ -328,23 +328,23 @@ test_expect_success 'pull.rebase=false and --ff, ff not possible' '
 test_expect_success 'Multiple heads warns about inability to fast forward' '
        git reset --hard c1 &&
        test_must_fail git pull . c2 c3 2>err &&
-       test_i18ngrep "You have divergent branches" err
+       test_grep "You have divergent branches" err
 '
 
 test_expect_success 'Multiple can never be fast forwarded' '
        git reset --hard c0 &&
        test_must_fail git -c pull.ff=only pull . c1 c2 c3 2>err &&
-       test_i18ngrep ! "You have divergent branches" err &&
+       test_grep ! "You have divergent branches" err &&
        # In addition to calling out "cannot fast-forward", we very much
        # want the "multiple branches" piece to be called out to users.
-       test_i18ngrep "Cannot fast-forward to multiple branches" err
+       test_grep "Cannot fast-forward to multiple branches" err
 '
 
 test_expect_success 'Cannot rebase with multiple heads' '
        git reset --hard c0 &&
        test_must_fail git -c pull.rebase=true pull . c1 c2 c3 2>err &&
-       test_i18ngrep ! "You have divergent branches" err &&
-       test_i18ngrep "Cannot rebase onto multiple branches." err
+       test_grep ! "You have divergent branches" err &&
+       test_grep "Cannot rebase onto multiple branches." err
 '
 
 test_expect_success 'merge c1 with c2' '
index c0e9425115f8041d615e454018150cd300eb47d3..d6975ca48df3d4710940a4b5a040c0598b0d0628 100755 (executable)
@@ -50,7 +50,7 @@ pre_merge_head="$(git rev-parse HEAD)"
 
 test_expect_success 'fails without MERGE_HEAD (unstarted merge)' '
        test_must_fail git merge --abort 2>output &&
-       test_i18ngrep MERGE_HEAD output
+       test_grep MERGE_HEAD output
 '
 
 test_expect_success 'fails without MERGE_HEAD (unstarted merge): .git/MERGE_HEAD sanity' '
@@ -64,7 +64,7 @@ test_expect_success 'fails without MERGE_HEAD (completed merge)' '
        # Merge successfully completed
        post_merge_head="$(git rev-parse HEAD)" &&
        test_must_fail git merge --abort 2>output &&
-       test_i18ngrep MERGE_HEAD output
+       test_grep MERGE_HEAD output
 '
 
 test_expect_success 'fails without MERGE_HEAD (completed merge): .git/MERGE_HEAD sanity' '
index f5c90cc22a1bba33368634c3679d2ea26cbc36bf..84ddb568517cee76f519f6faaac3e3a89e3e68ad 100755 (executable)
@@ -41,54 +41,54 @@ test_expect_success GPG 'create signed commits' '
 test_expect_success GPG 'merge unsigned commit with verification' '
        test_when_finished "git reset --hard && git checkout initial" &&
        test_must_fail git merge --ff-only --verify-signatures side-unsigned 2>mergeerror &&
-       test_i18ngrep "does not have a GPG signature" mergeerror
+       test_grep "does not have a GPG signature" mergeerror
 '
 
 test_expect_success GPG 'merge unsigned commit with merge.verifySignatures=true' '
        test_when_finished "git reset --hard && git checkout initial" &&
        test_config merge.verifySignatures true &&
        test_must_fail git merge --ff-only side-unsigned 2>mergeerror &&
-       test_i18ngrep "does not have a GPG signature" mergeerror
+       test_grep "does not have a GPG signature" mergeerror
 '
 
 test_expect_success GPG 'merge commit with bad signature with verification' '
        test_when_finished "git reset --hard && git checkout initial" &&
        test_must_fail git merge --ff-only --verify-signatures $(cat forged.commit) 2>mergeerror &&
-       test_i18ngrep "has a bad GPG signature" mergeerror
+       test_grep "has a bad GPG signature" mergeerror
 '
 
 test_expect_success GPG 'merge commit with bad signature with merge.verifySignatures=true' '
        test_when_finished "git reset --hard && git checkout initial" &&
        test_config merge.verifySignatures true &&
        test_must_fail git merge --ff-only $(cat forged.commit) 2>mergeerror &&
-       test_i18ngrep "has a bad GPG signature" mergeerror
+       test_grep "has a bad GPG signature" mergeerror
 '
 
 test_expect_success GPG 'merge commit with untrusted signature with verification' '
        test_when_finished "git reset --hard && git checkout initial" &&
        test_must_fail git merge --ff-only --verify-signatures side-untrusted 2>mergeerror &&
-       test_i18ngrep "has an untrusted GPG signature" mergeerror
+       test_grep "has an untrusted GPG signature" mergeerror
 '
 
 test_expect_success GPG 'merge commit with untrusted signature with verification and high minTrustLevel' '
        test_when_finished "git reset --hard && git checkout initial" &&
        test_config gpg.minTrustLevel marginal &&
        test_must_fail git merge --ff-only --verify-signatures side-untrusted 2>mergeerror &&
-       test_i18ngrep "has an untrusted GPG signature" mergeerror
+       test_grep "has an untrusted GPG signature" mergeerror
 '
 
 test_expect_success GPG 'merge commit with untrusted signature with verification and low minTrustLevel' '
        test_when_finished "git reset --hard && git checkout initial" &&
        test_config gpg.minTrustLevel undefined &&
        git merge --ff-only --verify-signatures side-untrusted >mergeoutput &&
-       test_i18ngrep "has a good GPG signature" mergeoutput
+       test_grep "has a good GPG signature" mergeoutput
 '
 
 test_expect_success GPG 'merge commit with untrusted signature with merge.verifySignatures=true' '
        test_when_finished "git reset --hard && git checkout initial" &&
        test_config merge.verifySignatures true &&
        test_must_fail git merge --ff-only side-untrusted 2>mergeerror &&
-       test_i18ngrep "has an untrusted GPG signature" mergeerror
+       test_grep "has an untrusted GPG signature" mergeerror
 '
 
 test_expect_success GPG 'merge commit with untrusted signature with merge.verifySignatures=true and minTrustLevel' '
@@ -96,20 +96,20 @@ test_expect_success GPG 'merge commit with untrusted signature with merge.verify
        test_config merge.verifySignatures true &&
        test_config gpg.minTrustLevel marginal &&
        test_must_fail git merge --ff-only side-untrusted 2>mergeerror &&
-       test_i18ngrep "has an untrusted GPG signature" mergeerror
+       test_grep "has an untrusted GPG signature" mergeerror
 '
 
 test_expect_success GPG 'merge signed commit with verification' '
        test_when_finished "git reset --hard && git checkout initial" &&
        git merge --verbose --ff-only --verify-signatures side-signed >mergeoutput &&
-       test_i18ngrep "has a good GPG signature" mergeoutput
+       test_grep "has a good GPG signature" mergeoutput
 '
 
 test_expect_success GPG 'merge signed commit with merge.verifySignatures=true' '
        test_when_finished "git reset --hard && git checkout initial" &&
        test_config merge.verifySignatures true &&
        git merge --verbose --ff-only side-signed >mergeoutput &&
-       test_i18ngrep "has a good GPG signature" mergeoutput
+       test_grep "has a good GPG signature" mergeoutput
 '
 
 test_expect_success GPG 'merge commit with bad signature without verification' '
@@ -133,7 +133,7 @@ test_expect_success GPG 'merge unsigned commit into unborn branch' '
        test_when_finished "git checkout initial" &&
        git checkout --orphan unborn &&
        test_must_fail git merge --verify-signatures side-unsigned 2>mergeerror &&
-       test_i18ngrep "does not have a GPG signature" mergeerror
+       test_grep "does not have a GPG signature" mergeerror
 '
 
 test_done
index 00f28fb558ced5cbb4c7667f9b6ce597ee7fb782..9fc1626fbfde8989348537903a266eb6cae8600d 100755 (executable)
@@ -23,7 +23,7 @@ test_expect_success '--geometric with no packs' '
                cd geometric &&
 
                git repack --write-midx --geometric 2 >out &&
-               test_i18ngrep "Nothing new to pack" out
+               test_grep "Nothing new to pack" out
        )
 '
 
@@ -38,7 +38,7 @@ test_expect_success '--geometric with one pack' '
 
                git repack --geometric 2 >out &&
 
-               test_i18ngrep "Nothing new to pack" out
+               test_grep "Nothing new to pack" out
        )
 '
 
index 59d3847bf87eab5d94fffbc48451665268b2832e..6a36be1e63c2bb84871e521349917be30ec6b3e3 100755 (executable)
@@ -28,14 +28,14 @@ prompt_given ()
 
 test_expect_success 'basic usage requires no repo' '
        test_expect_code 129 git difftool -h >output &&
-       test_i18ngrep ^usage: output &&
+       test_grep ^usage: output &&
        # create a ceiling directory to prevent Git from finding a repo
        mkdir -p not/repo &&
        test_when_finished rm -r not &&
        test_expect_code 129 \
        env GIT_CEILING_DIRECTORIES="$(pwd)/not" \
        git -C not/repo difftool -h >output &&
-       test_i18ngrep ^usage: output
+       test_grep ^usage: output
 '
 
 # Create a file on main and change it on branch
index 39d6d713ecbe05e9638f8f6ee3f79ff49628b2cf..bdacb57dcb2987cdb7c667ada5d5d45f2d8fdac7 100755 (executable)
@@ -1386,7 +1386,7 @@ test_expect_success 'grep --no-index pattern -- path' '
 
 test_expect_success 'grep --no-index complains of revs' '
        test_must_fail git grep --no-index o main -- 2>err &&
-       test_i18ngrep "cannot be used with revs" err
+       test_grep "cannot be used with revs" err
 '
 
 test_expect_success 'grep --no-index prefers paths to revs' '
@@ -1399,7 +1399,7 @@ test_expect_success 'grep --no-index prefers paths to revs' '
 
 test_expect_success 'grep --no-index does not "diagnose" revs' '
        test_must_fail git grep --no-index o :1:hello.c 2>err &&
-       test_i18ngrep ! -i "did you mean" err
+       test_grep ! -i "did you mean" err
 '
 
 cat >expected <<EOF
index 1dd07141a7df9f9666ac01a611c6c6a81ddc6424..fe38d88a1a6ab151cb318429ec64c1c49ff24fb3 100755 (executable)
@@ -63,7 +63,7 @@ test_expect_success SIMPLEPAGER 'git grep -O' '
 
 test_expect_success 'git grep -O --cached' '
        test_must_fail git grep --cached -O GREP_PATTERN >out 2>msg &&
-       test_i18ngrep open-files-in-pager msg
+       test_grep open-files-in-pager msg
 '
 
 test_expect_success 'git grep -O --no-index' '
index d37c83b4640c31b9f5b4d04251ecafbf08636aa7..167fe661504a2b609583750884bb40a902408e04 100755 (executable)
@@ -348,7 +348,7 @@ test_incompatible_with_recurse_submodules ()
 {
        test_expect_success "--recurse-submodules and $1 are incompatible" "
                test_must_fail git grep -e. --recurse-submodules $1 2>actual &&
-               test_i18ngrep 'not supported with --recurse-submodules' actual
+               test_grep 'not supported with --recurse-submodules' actual
        "
 }
 
index fdb2355649e31a8153f3ff60fe3ffbb531a2a7aa..4353be5adb7b0605e5bc3db9b1b29ecf0251fbf2 100755 (executable)
@@ -26,7 +26,7 @@ nul_match_internal () {
                        >stderr &&
                        printf '$pattern' | q_to_nul >f &&
                        test_must_fail env LC_ALL=\"$lc_all\" git grep $extra_flags -f f $flags a 2>stderr &&
-                       test_i18ngrep ! 'This is only supported with -P under PCRE v2' stderr
+                       test_grep ! 'This is only supported with -P under PCRE v2' stderr
                "
        elif test "$matches" = P
        then
@@ -34,7 +34,7 @@ nul_match_internal () {
                        >stderr &&
                        printf '$pattern' | q_to_nul >f &&
                        test_must_fail env LC_ALL=\"$lc_all\" git grep -f f $flags a 2>stderr &&
-                       test_i18ngrep 'This is only supported with -P under PCRE v2' stderr
+                       test_grep 'This is only supported with -P under PCRE v2' stderr
                "
        else
                test_expect_success "PANIC: Test framework error. Unknown matches value $matches" 'false'
index 487e326b3fac126fb611e50851465d7d8b963888..760079b411b40b1fc6fc1a38bfcdcd5fa51d5bda 100755 (executable)
@@ -33,13 +33,13 @@ test_systemd_analyze_verify () {
 
 test_expect_success 'help text' '
        test_expect_code 129 git maintenance -h >actual &&
-       test_i18ngrep "usage: git maintenance <subcommand>" actual &&
+       test_grep "usage: git maintenance <subcommand>" actual &&
        test_expect_code 129 git maintenance barf 2>err &&
-       test_i18ngrep "unknown subcommand: \`barf'\''" err &&
-       test_i18ngrep "usage: git maintenance" err &&
+       test_grep "unknown subcommand: \`barf'\''" err &&
+       test_grep "usage: git maintenance" err &&
        test_expect_code 129 git maintenance 2>err &&
-       test_i18ngrep "error: need a subcommand" err &&
-       test_i18ngrep "usage: git maintenance" err
+       test_grep "error: need a subcommand" err &&
+       test_grep "usage: git maintenance" err
 '
 
 test_expect_success 'run [--auto|--quiet]' '
@@ -131,12 +131,12 @@ test_expect_success 'commit-graph auto condition' '
 
 test_expect_success 'run --task=bogus' '
        test_must_fail git maintenance run --task=bogus 2>err &&
-       test_i18ngrep "is not a valid task" err
+       test_grep "is not a valid task" err
 '
 
 test_expect_success 'run --task duplicate' '
        test_must_fail git maintenance run --task=gc --task=gc 2>err &&
-       test_i18ngrep "cannot be selected multiple times" err
+       test_grep "cannot be selected multiple times" err
 '
 
 test_expect_success 'run --task=prefetch with no remotes' '
@@ -377,12 +377,12 @@ test_expect_success 'pack-refs task' '
 
 test_expect_success '--auto and --schedule incompatible' '
        test_must_fail git maintenance run --auto --schedule=daily 2>err &&
-       test_i18ngrep "at most one" err
+       test_grep "at most one" err
 '
 
 test_expect_success 'invalid --schedule value' '
        test_must_fail git maintenance run --schedule=annually 2>err &&
-       test_i18ngrep "unrecognized --schedule" err
+       test_grep "unrecognized --schedule" err
 '
 
 test_expect_success '--schedule inheritance weekly -> daily -> hourly' '
@@ -576,15 +576,15 @@ test_expect_success !MINGW 'register and unregister with regex metacharacters' '
 
 test_expect_success 'start --scheduler=<scheduler>' '
        test_expect_code 129 git maintenance start --scheduler=foo 2>err &&
-       test_i18ngrep "unrecognized --scheduler argument" err &&
+       test_grep "unrecognized --scheduler argument" err &&
 
        test_expect_code 129 git maintenance start --no-scheduler 2>err &&
-       test_i18ngrep "unknown option" err &&
+       test_grep "unknown option" err &&
 
        test_expect_code 128 \
                env GIT_TEST_MAINT_SCHEDULER="launchctl:true,schtasks:true" \
                git maintenance start --scheduler=crontab 2>err &&
-       test_i18ngrep "fatal: crontab scheduler is not available" err
+       test_grep "fatal: crontab scheduler is not available" err
 '
 
 test_expect_success 'start from empty cron table' '
index 8bcd39e81bfb7f28768c988caf16f27773460b4e..731265541acf9fb0ed4dcc216b662daa897f814d 100755 (executable)
@@ -207,7 +207,7 @@ EOF
 
 test_expect_success 'blame -L with invalid start' '
        test_must_fail git blame -L5 tres 2>errors &&
-       test_i18ngrep "has only 2 lines" errors
+       test_grep "has only 2 lines" errors
 '
 
 test_expect_success 'blame -L with invalid end' '
index b18633dee1bfb2339033f1d0ab708979e98da018..9a03b0f361ff6db76fb9df2b8bd6dd8d50c4d57b 100755 (executable)
@@ -129,14 +129,14 @@ test_expect_success override_ignore_revs_file '
        '
 test_expect_success bad_files_and_revs '
        test_must_fail git blame file --ignore-rev NOREV 2>err &&
-       test_i18ngrep "cannot find revision NOREV to ignore" err &&
+       test_grep "cannot find revision NOREV to ignore" err &&
 
        test_must_fail git blame file --ignore-revs-file NOFILE 2>err &&
-       test_i18ngrep "could not open.*: NOFILE" err &&
+       test_grep "could not open.*: NOFILE" err &&
 
        echo NOREV >ignore_norev &&
        test_must_fail git blame file --ignore-revs-file ignore_norev 2>err &&
-       test_i18ngrep "invalid object name: NOREV" err
+       test_grep "invalid object name: NOREV" err
 '
 
 # For ignored revs that have added 'unblamable' lines, mark those lines with a
index a60b05ad3f09f03433e2b7fe96e095966ddb104a..5307947db8d01d049ec1fd5c3e40672666a8c1a3 100755 (executable)
@@ -371,7 +371,7 @@ test_expect_success $PREREQ,!AUTOIDENT 'broken implicit ident aborts send-email'
                --smtp-server="$(pwd)/fake.sendmail" \
                --to=to@example.com \
                $patches </dev/null 2>errors &&
-       test_i18ngrep "tell me who you are" errors
+       test_grep "tell me who you are" errors
        )
 '
 
@@ -2062,7 +2062,7 @@ test_expect_success $PREREQ 'aliases and sendemail.identity' '
                -c sendemail.aliasesfile=default-aliases \
                -c sendemail.cloud.aliasesfile=cloud-aliases \
                send-email -1 2>stderr &&
-       test_i18ngrep "cloud-aliases" stderr
+       test_grep "cloud-aliases" stderr
 '
 
 test_sendmail_aliases () {
@@ -2427,7 +2427,7 @@ test_expect_success $PREREQ 'invoke hook' '
                        --to=nobody@example.com \
                        --smtp-server="$(pwd)/../fake.sendmail" \
                        ../another.patch 2>err &&
-               test_i18ngrep "rejected by sendemail-validate hook" err
+               test_grep "rejected by sendemail-validate hook" err
        )
 '
 
@@ -2483,7 +2483,7 @@ test_expect_success $PREREQ 'test that sendmail config is rejected' '
                --to=nobody@example.com \
                --smtp-server="$(pwd)/fake.sendmail" \
                HEAD^ 2>err &&
-       test_i18ngrep "found configuration options for '"'"sendmail"'"'" err
+       test_grep "found configuration options for '"'"sendmail"'"'" err
 '
 
 test_expect_success $PREREQ 'test that sendmail config rejection is specific' '
index ac237a1f906b2a05226c4cc7002763813dc543b7..dbb5042b0b8f1a00212ad01bcc8f8907ab47569a 100755 (executable)
@@ -2879,7 +2879,7 @@ test_expect_success 'S: filemodify with garbage after mark must fail' '
        COMMIT
        M 100644 :403x hello.c
        EOF
-       test_i18ngrep "space after mark" err
+       test_grep "space after mark" err
 '
 
 # inline is misspelled; fast-import thinks it is some unknown dataref
@@ -2895,7 +2895,7 @@ test_expect_success 'S: filemodify with garbage after inline must fail' '
        inline
        BLOB
        EOF
-       test_i18ngrep "nvalid dataref" err
+       test_grep "nvalid dataref" err
 '
 
 test_expect_success 'S: filemodify with garbage after sha1 must fail' '
@@ -2908,7 +2908,7 @@ test_expect_success 'S: filemodify with garbage after sha1 must fail' '
        COMMIT
        M 100644 ${sha1}x hello.c
        EOF
-       test_i18ngrep "space after SHA1" err
+       test_grep "space after SHA1" err
 '
 
 #
@@ -2923,7 +2923,7 @@ test_expect_success 'S: notemodify with garbage after mark dataref must fail' '
        COMMIT
        N :202x :302
        EOF
-       test_i18ngrep "space after mark" err
+       test_grep "space after mark" err
 '
 
 test_expect_success 'S: notemodify with garbage after inline dataref must fail' '
@@ -2938,7 +2938,7 @@ test_expect_success 'S: notemodify with garbage after inline dataref must fail'
        note blob
        BLOB
        EOF
-       test_i18ngrep "nvalid dataref" err
+       test_grep "nvalid dataref" err
 '
 
 test_expect_success 'S: notemodify with garbage after sha1 dataref must fail' '
@@ -2951,7 +2951,7 @@ test_expect_success 'S: notemodify with garbage after sha1 dataref must fail' '
        COMMIT
        N ${sha1}x :302
        EOF
-       test_i18ngrep "space after SHA1" err
+       test_grep "space after SHA1" err
 '
 
 #
@@ -2966,7 +2966,7 @@ test_expect_success 'S: notemodify with garbage after mark commit-ish must fail'
        COMMIT
        N :202 :302x
        EOF
-       test_i18ngrep "after mark" err
+       test_grep "after mark" err
 '
 
 #
@@ -2999,7 +2999,7 @@ test_expect_success 'S: from with garbage after mark must fail' '
        EOF
 
        # now evaluate the error
-       test_i18ngrep "after mark" err
+       test_grep "after mark" err
 '
 
 
@@ -3018,7 +3018,7 @@ test_expect_success 'S: merge with garbage after mark must fail' '
        merge :303x
        M 100644 :403 hello.c
        EOF
-       test_i18ngrep "after mark" err
+       test_grep "after mark" err
 '
 
 #
@@ -3033,7 +3033,7 @@ test_expect_success 'S: tag with garbage after mark must fail' '
        tag S
        TAG
        EOF
-       test_i18ngrep "after mark" err
+       test_grep "after mark" err
 '
 
 #
@@ -3043,7 +3043,7 @@ test_expect_success 'S: cat-blob with garbage after mark must fail' '
        test_must_fail git fast-import --import-marks=marks <<-EOF 2>err &&
        cat-blob :403x
        EOF
-       test_i18ngrep "after mark" err
+       test_grep "after mark" err
 '
 
 #
@@ -3053,7 +3053,7 @@ test_expect_success 'S: ls with garbage after mark must fail' '
        test_must_fail git fast-import --import-marks=marks <<-EOF 2>err &&
        ls :302x hello.c
        EOF
-       test_i18ngrep "space after mark" err
+       test_grep "space after mark" err
 '
 
 test_expect_success 'S: ls with garbage after sha1 must fail' '
@@ -3061,7 +3061,7 @@ test_expect_success 'S: ls with garbage after sha1 must fail' '
        test_must_fail git fast-import --import-marks=marks <<-EOF 2>err &&
        ls ${sha1}x hello.c
        EOF
-       test_i18ngrep "space after tree-ish" err
+       test_grep "space after tree-ish" err
 '
 
 ###
index a4b3cb94929c9cddfdb5a751f39b42acdb2529ab..53af8e34ac1c40a31dee6e6f4449f8c52dcf6f59 100755 (executable)
@@ -54,7 +54,7 @@ test_expect_success 'git p4 sync uninitialized repo' '
        (
                cd "$git" &&
                test_must_fail git p4 sync 2>errs &&
-               test_i18ngrep "Perhaps you never did" errs
+               test_grep "Perhaps you never did" errs
        )
 '
 
@@ -86,7 +86,7 @@ test_expect_success 'git p4 sync existing branch without changes' '
                test_commit head &&
                git p4 sync --branch=depot //depot@all &&
                git p4 sync --branch=refs/remotes/p4/depot >out &&
-               test_i18ngrep "No changes to import!" out
+               test_grep "No changes to import!" out
        )
 '
 
@@ -101,7 +101,7 @@ test_expect_success 'git p4 sync existing branch with relative name' '
                test_commit head &&
                git p4 sync --branch=branch1 //depot@all &&
                git p4 sync --branch=p4/branch1 >out &&
-               test_i18ngrep "No changes to import!" out
+               test_grep "No changes to import!" out
        )
 '
 
@@ -116,7 +116,7 @@ test_expect_success 'git p4 sync existing branch with nested path' '
                test_commit head &&
                git p4 sync --branch=p4/some/path //depot@all &&
                git p4 sync --branch=some/path >out &&
-               test_i18ngrep "No changes to import!" out
+               test_grep "No changes to import!" out
        )
 '
 
@@ -131,7 +131,7 @@ test_expect_success 'git p4 sync branch explicit ref without p4 in path' '
                test_commit head &&
                git p4 sync --branch=refs/remotes/someremote/depot //depot@all &&
                git p4 sync --branch=refs/remotes/someremote/depot >out &&
-               test_i18ngrep "No changes to import!" out
+               test_grep "No changes to import!" out
        )
 '
 
@@ -143,7 +143,7 @@ test_expect_success 'git p4 sync nonexistent ref' '
                test_commit head &&
                git p4 sync --branch=depot //depot@all &&
                test_must_fail git p4 sync --branch=depot2 2>errs &&
-               test_i18ngrep "Perhaps you never did" errs
+               test_grep "Perhaps you never did" errs
        )
 '
 
@@ -155,7 +155,7 @@ test_expect_success 'git p4 sync existing non-p4-imported ref' '
                test_commit head &&
                git p4 sync --branch=depot //depot@all &&
                test_must_fail git p4 sync --branch=refs/heads/master 2>errs &&
-               test_i18ngrep "Perhaps you never did" errs
+               test_grep "Perhaps you never did" errs
        )
 '
 
@@ -290,7 +290,7 @@ test_expect_success 'exit when p4 fails to produce marshaled output' '
                export PATH &&
                test_expect_code 1 git p4 clone --dest="$git" //depot >errs 2>&1
        ) &&
-       test_i18ngrep ! Traceback errs
+       test_grep ! Traceback errs
 '
 
 # Hide a file from p4d, make sure we catch its complaint.  This won't fail in
@@ -301,7 +301,7 @@ test_expect_success 'exit gracefully for p4 server errors' '
        mv "$db"/depot/file1,v "$db"/depot/file1,v,hidden &&
        test_when_finished cleanup_git &&
        test_expect_code 1 git p4 clone --dest="$git" //depot@1 >out 2>err &&
-       test_i18ngrep "Error from p4 print" err
+       test_grep "Error from p4 print" err
 '
 
 test_expect_success 'clone --bare should make a bare repository' '
index 759a14fa87ce6ae540b2c98cfd3b83a7bf6928f2..73cca0d143d41f219fea625865480dced9df1094 100755 (executable)
@@ -135,7 +135,7 @@ test_expect_success 'sync specific detected branch' '
        (
                cd "$git" &&
                git p4 sync --branch=depot/branch2 >out &&
-               test_i18ngrep "No changes to import!" out
+               test_grep "No changes to import!" out
        )
 '
 
index 7d4109f29d5e3b5751a9fba8b15c5a6d5d3e0fa6..af4b286f9d51af7655e86036d9938a691780af23 100755 (executable)
@@ -75,7 +75,7 @@ test_expect_success 'submit --dry-run' '
                test_commit "dry-run1" &&
                test_commit "dry-run2" &&
                git p4 submit --dry-run >out &&
-               test_i18ngrep "Would apply" out
+               test_grep "Would apply" out
        ) &&
        (
                cd "$cli" &&
@@ -99,7 +99,7 @@ test_expect_success 'submit --dry-run --export-labels' '
                git commit -m "dry-run2" dry-run2 &&
                git tag -m "dry-run-tag1" dry-run-tag1 HEAD^ &&
                git p4 submit --dry-run --export-labels >out &&
-               test_i18ngrep "Would create p4 label" out
+               test_grep "Would create p4 label" out
        ) &&
        (
                cd "$cli" &&
@@ -443,7 +443,7 @@ test_expect_success 'description with Jobs section and bogus following text' '
                # build a job
                make_job $(cat jobname) &&
                test_must_fail git p4 submit 2>err &&
-               test_i18ngrep "Unknown field name" err
+               test_grep "Unknown field name" err
        ) &&
        (
                cd "$cli" &&
@@ -461,9 +461,9 @@ test_expect_success 'submit --prepare-p4-only' '
                git add prep-only-add &&
                git commit -m "prep only add" &&
                git p4 submit --prepare-p4-only >out &&
-               test_i18ngrep "prepared for submission" out &&
-               test_i18ngrep "must be deleted" out &&
-               test_i18ngrep ! "everything below this line is just the diff" out
+               test_grep "prepared for submission" out &&
+               test_grep "must be deleted" out &&
+               test_grep ! "everything below this line is just the diff" out
        ) &&
        (
                cd "$cli" &&
index 0ca9937de6cfcee5c762ab47dffdc6bd5e2195f5..c766fd159f14b69eb46f9dc9bfb4357fdd7a5e34 100755 (executable)
@@ -35,7 +35,7 @@ test_expect_success 'conflict on one commit' '
                git add file1 &&
                git commit -m "line3 in file1 will conflict" &&
                test_expect_code 1 git p4 submit >out &&
-               test_i18ngrep "No commits applied" out
+               test_grep "No commits applied" out
        )
 '
 
@@ -58,7 +58,7 @@ test_expect_success 'conflict on second of two commits' '
                git add file1 &&
                git commit -m "line4 in file1 will conflict" &&
                test_expect_code 1 git p4 submit >out &&
-               test_i18ngrep "Applied only the commits" out
+               test_grep "Applied only the commits" out
        )
 '
 
@@ -81,7 +81,7 @@ test_expect_success 'conflict on first of two commits, skip' '
                # but this commit is okay
                test_commit "okay_commit_after_skip" &&
                echo s | test_expect_code 1 git p4 submit >out &&
-               test_i18ngrep "Applied only the commits" out
+               test_grep "Applied only the commits" out
        )
 '
 
@@ -104,7 +104,7 @@ test_expect_success 'conflict on first of two commits, quit' '
                # but this commit is okay
                test_commit "okay_commit_after_quit" &&
                echo q | test_expect_code 1 git p4 submit >out &&
-               test_i18ngrep "No commits applied" out
+               test_grep "No commits applied" out
        )
 '
 
@@ -144,7 +144,7 @@ test_expect_success 'conflict on first of two commits, --conflict=skip' '
                # but this commit is okay
                test_commit "okay_commit_after_auto_skip" &&
                test_expect_code 1 git p4 submit --conflict=skip >out &&
-               test_i18ngrep "Applied only the commits" out
+               test_grep "Applied only the commits" out
        )
 '
 
@@ -167,7 +167,7 @@ test_expect_success 'conflict on first of two commits, --conflict=quit' '
                # but this commit is okay
                test_commit "okay_commit_after_auto_quit" &&
                test_expect_code 1 git p4 submit --conflict=quit >out &&
-               test_i18ngrep "No commits applied" out
+               test_grep "No commits applied" out
        )
 '