-
Notifications
You must be signed in to change notification settings - Fork 56
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
Hide expected Git errors from stderr #159
Conversation
@casio would you be interested to review this PR? I invited you as collaborator in this project in case you would. |
Different Git versions use either `Path does not exist` or `path does not exist`
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 1.97%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
Hi, you forgot to set a language for running git. If you want to parse the localized output of some tool, you need to select a localization. |
@flying-sheep, that's an excellent catch! Could you please open a separate issue about that? |
Fixes #85.
With e.g.
darker --revision=master...
, newly created files would cause this Git error to appear on stderr:We already caught that situation and interpreted it properly as caused by a newly created file. In addition, the Git error messages are now silenced, but other Git errors are still logged with the
ERROR
loglevel.Unfortunately I couldn't find a way to create a failing test, i.e. one that would be able to catch Git's stderr.