Skip to content

Commit

Permalink
Merge branch 'pb/branch-advice-recurse-submodules'
Browse files Browse the repository at this point in the history
Improve advice message given when "git branch --recurse-submodules"
fails.

* pb/branch-advice-recurse-submodules:
  branch: improve advice when --recurse-submodules fails
  • Loading branch information
gitster committed Jan 27, 2023
2 parents 531d13d + 97cf0c7 commit 7d4d34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ void create_branches_recursively(struct repository *r, const char *name,
_("submodule '%s': unable to find submodule"),
submodule_entry_list.entries[i].submodule->name);
if (advice_enabled(ADVICE_SUBMODULES_NOT_UPDATED))
advise(_("You may try updating the submodules using 'git checkout %s && git submodule update --init'"),
advise(_("You may try updating the submodules using 'git checkout --no-recurse-submodules %s && git submodule update --init'"),
start_commitish);
exit(code);
}
Expand Down

0 comments on commit 7d4d34f

Please sign in to comment.