mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-22 02:45:00 +00:00
refactor: rewrite checkout/create branch with submodules
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
e446e97f28
commit
0f6c8976af
8 changed files with 136 additions and 65 deletions
|
@ -141,8 +141,8 @@ namespace SourceGit.ViewModels
|
|||
if (InitAndUpdateSubmodules)
|
||||
{
|
||||
var submodules = new Commands.QuerySubmodules(path).Result();
|
||||
foreach (var submodule in submodules)
|
||||
new Commands.Submodule(path).Use(log).Update(submodule.Path, true, true, false);
|
||||
if (submodules.Count > 0)
|
||||
new Commands.Submodule(path).Use(log).Update(submodules, true, true, false);
|
||||
}
|
||||
|
||||
log.Complete();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue