mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
enhance: do not init submodules after merge/pull (only update initialized submodules)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -95,7 +95,7 @@ namespace SourceGit.ViewModels
|
||||
if (submodules.Count > 0)
|
||||
await new Commands.Submodule(_repo.FullPath)
|
||||
.Use(log)
|
||||
.UpdateAsync(submodules, true, true);
|
||||
.UpdateAsync(submodules, false, true);
|
||||
}
|
||||
|
||||
log.Complete();
|
||||
|
||||
@@ -151,7 +151,7 @@ namespace SourceGit.ViewModels
|
||||
{
|
||||
var submodules = await new Commands.QueryUpdatableSubmodules(_repo.FullPath).GetResultAsync();
|
||||
if (submodules.Count > 0)
|
||||
await new Commands.Submodule(_repo.FullPath).Use(log).UpdateAsync(submodules, true, true);
|
||||
await new Commands.Submodule(_repo.FullPath).Use(log).UpdateAsync(submodules, false, true);
|
||||
}
|
||||
|
||||
if (needPopStash)
|
||||
|
||||
Reference in New Issue
Block a user