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

Commit e8fb83b

Browse files
Uncommenting some code
1 parent d834e25 commit e8fb83b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/GitHub.Api/Git/Repository.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -273,15 +273,15 @@ private void RepositoryManager_OnLocalBranchUpdated(string name)
273273

274274
private void RepositoryManager_OnRemoteBranchAdded(string remote, string name)
275275
{
276-
// Dictionary<string, ConfigBranch> branchList;
277-
// if (remoteBranches.TryGetValue(remote, out branchList))
278-
// {
279-
// if (!branchList.ContainsKey(name))
280-
// {
281-
// branchList.Add(name, new ConfigBranch { Name = name, Remote = remotes[remote] });
282-
// OnRemoteBranchListChanged?.Invoke();
283-
// }
284-
// }
276+
Dictionary<string, ConfigBranch> branchList;
277+
if (remoteBranches.TryGetValue(remote, out branchList))
278+
{
279+
if (!branchList.ContainsKey(name))
280+
{
281+
branchList.Add(name, new ConfigBranch { Name = name, Remote = remotes[remote] });
282+
OnRemoteBranchListChanged?.Invoke();
283+
}
284+
}
285285
}
286286

287287
private void RepositoryManager_OnRemoteBranchRemoved(string remote, string name)

0 commit comments

Comments
 (0)