Skip to content

Commit 7d4d34f

Browse files
committed
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
2 parents 531d13d + 97cf0c7 commit 7d4d34f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

branch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ void create_branches_recursively(struct repository *r, const char *name,
756756
_("submodule '%s': unable to find submodule"),
757757
submodule_entry_list.entries[i].submodule->name);
758758
if (advice_enabled(ADVICE_SUBMODULES_NOT_UPDATED))
759-
advise(_("You may try updating the submodules using 'git checkout %s && git submodule update --init'"),
759+
advise(_("You may try updating the submodules using 'git checkout --no-recurse-submodules %s && git submodule update --init'"),
760760
start_commitish);
761761
exit(code);
762762
}

0 commit comments

Comments
 (0)