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

Specifying dontUseGit when finding git #661

Merged
merged 2 commits into from
Apr 5, 2018
Merged

Conversation

StanleyGoldman
Copy link
Contributor

@StanleyGoldman StanleyGoldman commented Mar 29, 2018

Fixes: #664

Part of the problems identified in #659

When attempting to use the system's where/which command we should probably not modify the environment PATH variable. Especially when attempting to look for the system git.

Copy link
Member

@shana shana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pushing a change to address the comment.

@@ -120,7 +120,7 @@ public override void OnGUI()
CheckEnteredGitPath();

new FindExecTask("git", Manager.CancellationToken)
.Configure(Manager.ProcessManager)
.Configure(Manager.ProcessManager, false, true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should just be .Configure(Manager.ProcessManager, dontSetupGit: true) for readability and future-proofing.

@shana shana merged commit bb3730e into master Apr 5, 2018
@shana shana deleted the fixes/findexectask-dontusegit branch April 5, 2018 19:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants