Unverified Commit 3bee8d5f by Edward Thomson Committed by GitHub

Merge pull request #6673 from csware/git2-noargs

git2: Fix crash when called w/o parameters
parents b49b8dbe f247a3f5
......@@ -100,6 +100,11 @@ int main(int argc, char **argv)
goto done;
}
if (!command) {
ret = cmd_help(argc, argv);
goto done;
}
if ((cmd = cli_cmd_spec_byname(command)) == NULL) {
ret = cli_error("'%s' is not a %s command. See '%s help'.",
command, PROGRAM_NAME, PROGRAM_NAME);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment