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

Commit adc260c

Browse files
The RepositoryManager should not return data that comes from the Repository
1 parent 9e13714 commit adc260c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.Api/Git/RepositoryManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ private void OnLocalBranchDeleted(string name)
420420

421421
private void OnLocalBranchChanged(string name)
422422
{
423-
if (name == this.Repository.CurrentBranch)
423+
if (name == ActiveBranch?.Name)
424424
{
425425
OnActiveBranchChanged?.Invoke();
426426
OnRepositoryUpdatedHandler();

0 commit comments

Comments
 (0)