diff options
author | Vsevolod Kukol <sevoku@microsoft.com> | 2019-03-25 15:31:35 +0300 |
---|---|---|
committer | Vsevolod Kukol <sevoku@microsoft.com> | 2019-03-25 15:31:35 +0300 |
commit | 4a74e5201fd31c56f02df32d1341e55c135b5a07 (patch) | |
tree | 29063cdcf798ead3784c4a840d698d99662f006f | |
parent | c5184b1a8925d08199581855b8ab17afa4ebb0b8 (diff) |
[Git] Don't block when getting the current branch name
Fixes VSTS #827015
-rw-r--r-- | main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs b/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs index c82a36cb7b..86a4f93b9f 100644 --- a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs +++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs @@ -1779,7 +1779,7 @@ namespace MonoDevelop.VersionControl.Git public string GetCurrentBranch () { - return RunOperation (() => RootRepository.Head.FriendlyName); + return RunSafeOperation (() => RootRepository.Head.FriendlyName); } void SwitchBranchInternal (ProgressMonitor monitor, string branch) |