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

Commit 5d2582f

Browse files
Removing unused credential manager from GitClient
1 parent 0bd09d6 commit 5d2582f

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/GitHub.Api/Application/ApplicationManagerBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected void Initialize()
3939
Logging.TracingEnabled = UserSettings.Get(Constants.TraceLoggingKey, false);
4040
ProcessManager = new ProcessManager(Environment, Platform.GitEnvironment, CancellationToken);
4141
Platform.Initialize(ProcessManager, TaskManager);
42-
GitClient = new GitClient(Environment, ProcessManager, Platform.CredentialManager, TaskManager);
42+
GitClient = new GitClient(Environment, ProcessManager, TaskManager);
4343
SetupMetrics();
4444
}
4545

src/GitHub.Api/Git/GitClient.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,13 @@ class GitClient : IGitClient
8787
{
8888
private readonly IEnvironment environment;
8989
private readonly IProcessManager processManager;
90-
private readonly ICredentialManager credentialManager;
9190
private readonly ITaskManager taskManager;
9291
private readonly CancellationToken cancellationToken;
9392

94-
public GitClient(IEnvironment environment, IProcessManager processManager,
95-
ICredentialManager credentialManager, ITaskManager taskManager)
93+
public GitClient(IEnvironment environment, IProcessManager processManager, ITaskManager taskManager)
9694
{
9795
this.environment = environment;
9896
this.processManager = processManager;
99-
this.credentialManager = credentialManager;
10097
this.taskManager = taskManager;
10198
this.cancellationToken = taskManager.Token;
10299
}

src/tests/IntegrationTests/BaseGitEnvironmentTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected async Task<IEnvironment> Initialize(NPath repoPath, NPath environmentP
2626

2727
Platform.Initialize(ProcessManager, TaskManager);
2828

29-
GitClient = new GitClient(Environment, ProcessManager, Platform.CredentialManager, TaskManager);
29+
GitClient = new GitClient(Environment, ProcessManager, TaskManager);
3030

3131
var usageTracker = new NullUsageTracker();
3232

0 commit comments

Comments
 (0)