disable lookup for GitHub's version of Git #35965
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
👋 GitHub Desktop team member dropping in. We had report from someone who was seeing our app launch every few minutes, trying to open a weird path: desktop/desktop#2962
Repro steps:
Actual behaviour:
GitHub Desktop is launched, trying to open a folder that doesn't look like a folder:
Expected behaviour:
No launching UI
What's Happening
The classic Git Shell had system-level config value to make itself act as a credential helper:
This was fine because we put
github.exe
first on thePATH
when you launched Git Shell and only then, but we never added ourselves to the user's PATH for historical reasons (not wanting to interfere with existing Git installations mostly). Time passed, things changed, and with the new Desktop people wanted us to bring back thegithub
command line for doing things like adding repositories to the app.This time around we didn't have a Git Shell in-the-box, so we appended the location of
github.bat
toPATH
so that it'd be available in whatever shell you like.Now we have different problems, because
github.bat
doesn't act as a credential helper, and the classicgithub.exe
will callgithub.bat
and never itself because your PATH is setup that way.So I'd like to just 🔥 this lookup code and encourage people to setup Git for Windows.