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

Commit d317194

Browse files
authored
Merge pull request #397 from github-for-unity/fixes/repository-remove-remote-branch
Gross copy pasta error with removing a remote branch
2 parents d89006a + 004f031 commit d317194

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)