diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-04-12 16:20:32 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-04-13 15:52:47 -0700 |
commit | f2c8c8007c43b75e6a461137364a3ec65108afbc (patch) | |
tree | 28049955d9203617bde0d2d8be3698d0d585fd55 /t/t2020-checkout-detach.sh | |
parent | d3bd0425b21b84fbc554b24b4315bfcbc2d7a5bf (diff) | |
download | git-f2c8c8007c43b75e6a461137364a3ec65108afbc.tar.gz |
i18n: use test_i18ngrep in t2020, t2204, t3030, and t3200
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2020-checkout-detach.sh')
-rwxr-xr-x | t/t2020-checkout-detach.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/t/t2020-checkout-detach.sh b/t/t2020-checkout-detach.sh index ab782e22fd..2366f0f414 100755 --- a/t/t2020-checkout-detach.sh +++ b/t/t2020-checkout-detach.sh @@ -13,10 +13,10 @@ check_not_detached () { ORPHAN_WARNING='you are leaving .* commit.*behind' check_orphan_warning() { - grep "$ORPHAN_WARNING" "$1" + test_i18ngrep "$ORPHAN_WARNING" "$1" } check_no_orphan_warning() { - ! grep "$ORPHAN_WARNING" "$1" + test_i18ngrep ! "$ORPHAN_WARNING" "$1" } reset () { @@ -111,7 +111,7 @@ test_expect_success 'checkout warns on orphan commits' ' git checkout master 2>stderr ' -test_expect_success C_LOCALE_OUTPUT 'checkout warns on orphan commits: output' ' +test_expect_success 'checkout warns on orphan commits: output' ' check_orphan_warning stderr ' @@ -121,7 +121,7 @@ test_expect_success 'checkout does not warn leaving ref tip' ' git checkout master 2>stderr ' -test_expect_success C_LOCALE_OUTPUT 'checkout does not warn leaving ref tip' ' +test_expect_success 'checkout does not warn leaving ref tip' ' check_no_orphan_warning stderr ' @@ -131,7 +131,7 @@ test_expect_success 'checkout does not warn leaving reachable commit' ' git checkout master 2>stderr ' -test_expect_success C_LOCALE_OUTPUT 'checkout does not warn leaving reachable commit' ' +test_expect_success 'checkout does not warn leaving reachable commit' ' check_no_orphan_warning stderr ' |