@@ -943,37 +943,37 @@ test_expect_success '--dirstat=future_param,lines,0 should fail loudly' '
943
943
test_must_fail git diff --dirstat=future_param,lines,0 HEAD^..HEAD >actual_diff_dirstat 2>actual_error &&
944
944
test_debug "cat actual_error" &&
945
945
test_cmp /dev/null actual_diff_dirstat &&
946
- grep -q "future_param" actual_error &&
947
- grep -q "\--dirstat" actual_error
946
+ test_i18ngrep -q "future_param" actual_error &&
947
+ test_i18ngrep -q "\--dirstat" actual_error
948
948
'
949
949
950
950
test_expect_success ' --dirstat=dummy1,cumulative,2dummy should report both unrecognized parameters' '
951
951
test_must_fail git diff --dirstat=dummy1,cumulative,2dummy HEAD^..HEAD >actual_diff_dirstat 2>actual_error &&
952
952
test_debug "cat actual_error" &&
953
953
test_cmp /dev/null actual_diff_dirstat &&
954
- grep -q "dummy1" actual_error &&
955
- grep -q "2dummy" actual_error &&
956
- grep -q "\--dirstat" actual_error
954
+ test_i18ngrep -q "dummy1" actual_error &&
955
+ test_i18ngrep -q "2dummy" actual_error &&
956
+ test_i18ngrep -q "\--dirstat" actual_error
957
957
'
958
958
959
959
test_expect_success ' diff.dirstat=future_param,0,lines should warn, but still work' '
960
960
git -c diff.dirstat=future_param,0,lines diff --dirstat HEAD^..HEAD >actual_diff_dirstat 2>actual_error &&
961
961
test_debug "cat actual_error" &&
962
962
test_cmp expect_diff_dirstat actual_diff_dirstat &&
963
- grep -q "future_param" actual_error &&
964
- grep -q "diff\\.dirstat" actual_error &&
963
+ test_i18ngrep -q "future_param" actual_error &&
964
+ test_i18ngrep -q "diff\\.dirstat" actual_error &&
965
965
966
966
git -c diff.dirstat=future_param,0,lines diff --dirstat -M HEAD^..HEAD >actual_diff_dirstat_M 2>actual_error &&
967
967
test_debug "cat actual_error" &&
968
968
test_cmp expect_diff_dirstat_M actual_diff_dirstat_M &&
969
- grep -q "future_param" actual_error &&
970
- grep -q "diff\\.dirstat" actual_error &&
969
+ test_i18ngrep -q "future_param" actual_error &&
970
+ test_i18ngrep -q "diff\\.dirstat" actual_error &&
971
971
972
972
git -c diff.dirstat=future_param,0,lines diff --dirstat -C -C HEAD^..HEAD >actual_diff_dirstat_CC 2>actual_error &&
973
973
test_debug "cat actual_error" &&
974
974
test_cmp expect_diff_dirstat_CC actual_diff_dirstat_CC &&
975
- grep -q "future_param" actual_error &&
976
- grep -q "diff\\.dirstat" actual_error
975
+ test_i18ngrep -q "future_param" actual_error &&
976
+ test_i18ngrep -q "diff\\.dirstat" actual_error
977
977
'
978
978
979
979
test_done
0 commit comments