mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
fix(Submodule): refresh submodules after updated successfully
This commit is contained in:
parent
0e9b1574a8
commit
d29e5def4b
2 changed files with 17 additions and 4 deletions
|
@ -907,6 +907,22 @@ namespace SourceGit.Git {
|
|||
isWatcherDisabled = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Update submodule.
|
||||
/// </summary>
|
||||
public void UpdateSubmodule() {
|
||||
isWatcherDisabled = true;
|
||||
|
||||
var errs = RunCommand("submodule update", null);
|
||||
if (errs != null) {
|
||||
App.RaiseError(errs);
|
||||
} else {
|
||||
OnSubmoduleChanged?.Invoke();
|
||||
}
|
||||
|
||||
isWatcherDisabled = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Blame file.
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue