Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit ae253f9

Browse files
Gross copy pasta error with removing a remote branch
1 parent 2f38e6a commit ae253f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub.Api/Git/Repository.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ private void RepositoryManager_OnRemoteBranchRemoved(string remote, string name)
303303
Dictionary<string, ConfigBranch> branchList;
304304
if (remoteBranches.TryGetValue(remote, out branchList))
305305
{
306-
if (localBranches.ContainsKey(name))
306+
if (branchList.ContainsKey(name))
307307
{
308-
localBranches.Remove(name);
308+
branchList.Remove(name);
309309

310310
Logger.Trace("OnRemoteBranchListChanged");
311311
OnRemoteBranchListChanged?.Invoke();

0 commit comments

Comments
 (0)