Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
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
9 changes: 8 additions & 1 deletion src/GitHub.Api/Application/ApplicationManagerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,15 @@ private async Task SetupGit()
if (Environment.IsWindows)
{
var credentialHelper = await GitClient.GetConfig("credential.helper", GitConfigSource.Global).StartAwait();
if (string.IsNullOrEmpty(credentialHelper))

if (!string.IsNullOrEmpty(credentialHelper))
{
Logger.Trace("Windows CredentialHelper: {0}", credentialHelper);
}
else
{
Logger.Warning("No Windows CredentialHeloper found: Setting to wincred");

await GitClient.SetConfig("credential.helper", "wincred", GitConfigSource.Global).StartAwait();
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/GitHub.Api/Git/GitCredentialManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ private async Task<bool> LoadCredentialHelper()
.Configure(processManager)
.StartAwait();

Logger.Trace("Loaded Credential Helper: {0}", credHelper);

if (credHelper != null)
{
return true;
Expand Down