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

Commit fc7212d

Browse files
Merge branch 'master' into features/metrics-repo-size
2 parents b5b03d6 + 64e1262 commit fc7212d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/GitHub.Api/Git/Repository.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ public void Refresh(CacheType cacheType)
188188
{
189189
var cache = cacheContainer.GetCache(cacheType);
190190
cache.InvalidateData();
191+
192+
// Ensuring that the GitLock cache is kept up to date
193+
cacheContainer.GetCache(CacheType.GitLocks).ValidateData();
191194
}
192195

193196
private void CacheHasBeenInvalidated(CacheType cacheType)

0 commit comments

Comments
 (0)