Merge branch 'rs/submodule-config-code-cleanup'

Code cleanup.

* rs/submodule-config-code-cleanup:
  submodule-config: fix test binary crashing when no arguments given
  submodule-config: combine early return code into one goto
  submodule-config: passing name reference for .gitmodule blobs
  submodule-config: use explicit empty string instead of strbuf in config_from()
This commit is contained in:
Junio C Hamano
2016-08-03 15:10:28 -07:00
3 changed files with 28 additions and 17 deletions

View File

@ -23,7 +23,7 @@ int cmd_main(int argc, const char **argv)
arg++;
my_argc--;
while (starts_with(arg[0], "--")) {
while (arg[0] && starts_with(arg[0], "--")) {
if (!strcmp(arg[0], "--url"))
output_url = 1;
if (!strcmp(arg[0], "--name"))