Skip to content

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 kittaakos@typefox.io

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
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