Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
kittaakos merged 1 commit into main from atl-1145--suppress-git-error
Mar 31, 2021

Conversation

Copy link
Contributor

@kittaakos kittaakos commented Mar 31, 2021

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
    👍

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
Reviewers
1 more reviewer

@rsora rsora rsora approved these changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /