diff options
author | Mike Krüger <mikkrg@microsoft.com> | 2019-12-04 12:53:23 +0300 |
---|---|---|
committer | monojenkins <jo.shields+jenkins@xamarin.com> | 2019-12-05 12:53:36 +0300 |
commit | 81c42a2d601d2da3b3983a55beeb7954cead5a8b (patch) | |
tree | 228ad31b77cd2bad0ced2c1c42a22a52bbbe4fb0 | |
parent | a31b5aec6029543cf485bd0f577a8b6023e1603f (diff) |
Fixes VSTS Bug 1027417: [FATAL] SigTerm signal in MonoDevelop.VersionControl.Git.dll!MonoDevelop.VersionControl.Git.TaskFailureExtensions::RunWaitAndCapture+0
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1027417
Was the only command call left using the non async update which may
cause dead locks.
-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); } } |