diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/Commands.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/Commands.cs b/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/Commands.cs index 0214f9e5b6..b1eb2c7b5c 100644 --- a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/Commands.cs +++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/Commands.cs @@ -187,12 +187,11 @@ namespace MonoDevelop.VersionControl.Git dlg.Dispose (); } } - - protected override void Update (CommandInfo info) + protected override async Task UpdateAsync (CommandInfo info, CancellationToken cancelToken) { var repo = UpdateVisibility (info); if (repo != null) - info.Enabled = repo.RunOperation (repo.RootPath, repository => !repository.Info.IsHeadUnborn); + info.Enabled = await repo.RunOperationAsync (repo.RootPath, repository => !repository.Info.IsHeadUnborn, cancelToken); } } |