help: use command-list.h for common command list
[gitweb.git] / t / t0012-help.sh
index 487b92a5de3238821ed3d8aadadb1f07d35e0609..c096f33505f61634cb9a6195a753ae408f3830c7 100755 (executable)
@@ -49,6 +49,15 @@ 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
 '