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

Commit 467fe02

Browse files
authored
Merge pull request #710 from github-for-unity/fixes/user-cache-update
Fix to User cache updating
2 parents 44ae3d8 + febaa6c commit 467fe02

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/GitHub.Api/Git/Repository.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,10 @@ public void Initialize(IGitClient client)
409409
Guard.ArgumentNotNull(client, nameof(client));
410410
gitClient = client;
411411
if (needsRefresh)
412-
cacheContainer.GitUserCache.InvalidateData();
412+
{
413+
needsRefresh = false;
414+
GitUserCacheOnCacheInvalidated();
415+
}
413416
}
414417

415418
public void SetNameAndEmail(string name, string email)

0 commit comments

Comments
 (0)