From ae253f95d41f1346d7d01e0c9a8c7f839ba7714b Mon Sep 17 00:00:00 2001 From: Stanley Goldman Date: Mon, 30 Oct 2017 18:33:06 -0400 Subject: [PATCH] Gross copy pasta error with removing a remote branch --- src/GitHub.Api/Git/Repository.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GitHub.Api/Git/Repository.cs b/src/GitHub.Api/Git/Repository.cs index a28a7b679..be4ccc7a5 100644 --- a/src/GitHub.Api/Git/Repository.cs +++ b/src/GitHub.Api/Git/Repository.cs @@ -303,9 +303,9 @@ private void RepositoryManager_OnRemoteBranchRemoved(string remote, string name) Dictionary branchList; if (remoteBranches.TryGetValue(remote, out branchList)) { - if (localBranches.ContainsKey(name)) + if (branchList.ContainsKey(name)) { - localBranches.Remove(name); + branchList.Remove(name); Logger.Trace("OnRemoteBranchListChanged"); OnRemoteBranchListChanged?.Invoke();