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

Commit 20fc378

Browse files
Adding log messages to help debug this
1 parent 269841c commit 20fc378

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/GitHub.Api/Platform/ProcessEnvironment.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public void Configure(ProcessStartInfo psi, NPath workingDirectory, bool dontSet
2525
if (!Environment.GitInstallPath.IsInitialized || dontSetupGit)
2626
return;
2727

28+
Logger.Trace("Environment.GitExecutablePath", Environment.GitExecutablePath);
2829

2930
Guard.ArgumentNotNull(psi, "psi");
3031

@@ -67,6 +68,9 @@ public void Configure(ProcessStartInfo psi, NPath workingDirectory, bool dontSet
6768
path = $"{gitExecutableDir}:{binPath}:{execPath}:{gitLfsPath}:{Environment.Path}:{developerPaths}";
6869
}
6970

71+
Logger.Trace("Environment Path: {0}", Environment.Path);
72+
Logger.Trace("Calculated Path: {0}", path);
73+
7074
if (execPath.IsInitialized)
7175
psi.EnvironmentVariables["GIT_EXEC_PATH"] = execPath.ToString();
7276

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/GitPathView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ private void CheckEnteredGitPath()
213213

214214
private void ValidateAndSetGitInstallPath(string value)
215215
{
216-
//Logger.Trace("Validating Git Path:{0}", value);
216+
Logger.Trace("Validating Git Path:{0}", value);
217217

218218
gitVersionErrorMessage = null;
219219

0 commit comments

Comments
 (0)