-
Notifications
You must be signed in to change notification settings - Fork 105
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
Maybe remove color output from tar_scm? #213
Comments
IIRC - tar_scm is not adding any color codes and I guess osc is doing neither. I would guess the git output contains the color codes from the beginning. Maybe you also could solve your issue with a modification of your git config - color.* seems to be promising to me: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration |
We should expect and support users who configure their git to output in colour, so it might be worth making tar_scm enforce disabling of colour, so that it works without requiring them to change their config. |
Nah, I should just make tar_scm do a isatty test, because (as I found out once again) it was myself who added the color codes. |
@M0ses commented on 19 Apr 2018, 20:09 BST:
Actually it is, e.g. obs-service-tar_scm/TarSCM/scm/git.py Line 196 in c15f106
@jengelh commented on 19 Jun 2018, 12:30 BST:
Yeah, adding an |
I have an update, though it's based on the PR for #211 , so I'm waiting until that has gotten through. |
Thanks for the nudge - I'm not getting notifications from GitHub when new commits are pushed to PRs I'm watching, so I hadn't realised you'd updated it. Not sure how to fix that. |
Color codes from obs-service-tar_scm is copied verbatim into OBS status messages. I am impartial; the message is still readable, which is good enough for me. What do people think about removing (or keeping) the color codes?
(This error messages comes from PR #211 as I am running my own dogfood.)
The text was updated successfully, but these errors were encountered: