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

Commit 8abdd38

Browse files
Populating list of remotes
1 parent 85f5335 commit 8abdd38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/GitHub.Api/Git/Repository.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,11 @@ private void UpdateCurrentBranchAndRemote()
224224

225225
private void RepositoryManager_OnRemoteBranchListUpdated(Dictionary<string, Dictionary<string, ConfigBranch>> branches)
226226
{
227-
Logger.Trace("RemoveBranchListUpdated");
227+
Logger.Trace("RemoteBranchListUpdated");
228228

229229
remoteBranches = branches;
230+
remotes = branches.ToDictionary(pair => pair.Key, pair => pair.Value.Values.First().Remote.Value);
231+
230232
OnRemoteBranchListChanged?.Invoke();
231233
}
232234

0 commit comments

Comments
 (0)