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
6 changes: 2 additions & 4 deletions src/GitHub.Api/Git/RepositoryManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ class RepositoryManager : IRepositoryManager
private readonly IGitClient gitClient;
private readonly IPlatform platform;
private readonly IRepositoryPathConfiguration repositoryPaths;
private readonly ITaskManager taskManager;
private readonly IRepositoryWatcher watcher;

private bool isBusy;
Expand All @@ -113,13 +112,12 @@ class RepositoryManager : IRepositoryManager
public event Action<string, string> OnRemoteBranchRemoved;
public event Action OnRepositoryUpdated;

public RepositoryManager(IPlatform platform, ITaskManager taskManager, IGitConfig gitConfig,
public RepositoryManager(IPlatform platform, IGitConfig gitConfig,
IRepositoryWatcher repositoryWatcher, IGitClient gitClient,
IRepositoryPathConfiguration repositoryPaths)
{
this.repositoryPaths = repositoryPaths;
this.platform = platform;
this.taskManager = taskManager;
this.gitClient = gitClient;
this.watcher = repositoryWatcher;
this.config = gitConfig;
Expand All @@ -136,7 +134,7 @@ public static RepositoryManager CreateInstance(IPlatform platform, ITaskManager

var repositoryWatcher = new RepositoryWatcher(platform, repositoryPathConfiguration, taskManager.Token);

return new RepositoryManager(platform, taskManager, gitConfig, repositoryWatcher,
return new RepositoryManager(platform, gitConfig, repositoryWatcher,
gitClient, repositoryPathConfiguration);
}

Expand Down