]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t7526-commit-pathspec-file.sh
i18n: factorize "--foo requires --bar" and the like
[thirdparty/git.git] / t / t7526-commit-pathspec-file.sh
index dca62fc48e52031c83a4f78caa45181b584b38f4..ea69e3a6ad1505f3c82b30fe9606497ea1768f38 100755 (executable)
@@ -141,19 +141,19 @@ test_expect_success 'error conditions' '
        >empty_list &&
 
        test_must_fail git commit --pathspec-from-file=list --interactive -m "Commit" 2>err &&
-       test_i18ngrep -e "--pathspec-from-file is incompatible with --interactive/--patch" err &&
+       test_i18ngrep -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 "--pathspec-from-file is incompatible with --interactive/--patch" err &&
+       test_i18ngrep -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 "--pathspec-from-file with -a does not make sense" err &&
+       test_i18ngrep -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 is incompatible with pathspec arguments" err &&
 
        test_must_fail git commit --pathspec-file-nul -m "Commit" 2>err &&
-       test_i18ngrep -e "--pathspec-file-nul requires --pathspec-from-file" err &&
+       test_i18ngrep -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 &&