Skip to content

ATL-1145: Suppress error if Git is not on $PATH. #294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

kittaakos
Copy link
Contributor

This PR does one thing: it suppresses the error message when the Git executable is not on the $PATH.

How to verify: this is an interesting part, I did the straightforward way and renamed all my Git executables to something else so that git version fails from a terminal. I renamed the followings:

  • C:\Program Files\Git\cmd\git.exe,
  • C:\Users\my_name\scopes\shims\git.EXE, and
  • made sure /mingw64/bin/git (for Git Bash) also not accessible.

Once you have a setup without git on the $PATH, start the app. You should not see any errors.

Signed-off-by: Akos Kitta [email protected]

Copy link
Contributor

@rsora rsora left a comment

Choose a reason for hiding this comment

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

Tested in a clean Win environment:

  • latest nightly: I can see the error message
  • Build from this PR: I can't see the error anymore
    👍

@kittaakos
Copy link
Contributor Author

Thank you for the review.

@kittaakos kittaakos merged commit a8df244 into main Mar 31, 2021
@kittaakos kittaakos deleted the atl-1145--suppress-git-error branch March 31, 2021 17:15
@per1234 per1234 added topic: code Related to content of the project itself type: enhancement Proposed improvement labels Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants