Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/GitHub.Api/Git/Repository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ public void Initialize(IRepositoryManager initRepositoryManager)
repositoryManager.OnRemoteBranchAdded += RepositoryManager_OnRemoteBranchAdded;
repositoryManager.OnRemoteBranchRemoved += RepositoryManager_OnRemoteBranchRemoved;
repositoryManager.OnGitUserLoaded += user => User = user;

UpdateGitStatus();
UpdateGitLog();

new ActionTask(CancellationToken.None, UpdateLocks) { Affinity = TaskAffinity.UI }.Start();
}

public ITask SetupRemote(string remote, string remoteUrl)
Expand Down Expand Up @@ -287,12 +282,15 @@ private void CacheContainer_OnCacheInvalidated(CacheType cacheType)
break;

case CacheType.GitLogCache:
UpdateGitLog();
break;

case CacheType.GitStatusCache:
UpdateGitStatus();
break;

case CacheType.GitLocksCache:
UpdateLocks();
break;

case CacheType.GitUserCache:
Expand Down