Merge branch 'pb/branch-advice-recurse-submodules'
Improve advice message given when "git branch --recurse-submodules" fails. * pb/branch-advice-recurse-submodules: branch: improve advice when --recurse-submodules fails
This commit is contained in:
commit
7d4d34f843
2
branch.c
2
branch.c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user