git.c: convert --list-* to --list-cmds=*
[gitweb.git] / t / t0012-help.sh
index 487b92a5de3238821ed3d8aadadb1f07d35e0609..3c91a9024aad84a1e9f8ad50c52ec5e53b7359f1 100755 (executable)
@@ -49,8 +49,17 @@ test_expect_success "--help does not work for guides" "
        test_i18ncmp expect actual
 "
 
+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_expect_success 'generate builtin list' '
-       git --list-builtins >builtins
+       git --list-cmds=builtins >builtins
 '
 
 while read builtin