Skip to content
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

prevent ANSI color escape sequences from messing up git output #458

Merged
merged 1 commit into from
May 20, 2020

Conversation

kenyon
Copy link

@kenyon kenyon commented May 18, 2020

If the git config color.ui is set to "always", then you get ANSI escape codes in the git output, which messes up comparisons, and results in errors on puppet agent runs. This pull request prevents color in the output.

@kenyon kenyon force-pushed the no-color branch 2 times, most recently from 4ca52f5 to edf3555 Compare May 18, 2020 09:02
@kenyon
Copy link
Author

kenyon commented May 18, 2020

I can't figure out why 0df26c5 and edf3555 caused this test failure: https://travis-ci.org/github/puppetlabs/puppetlabs-vcsrepo/jobs/688290244#L747

But that change was just a bonus, not actually affecting me like the branch color bug, so I'm removing it.

If git config color.ui is set to "always", then you get ANSI escape
codes in the git output, which messes up comparisons. This commit
ensures that there are no colors in the output, so you get plain text
as expected.
@kenyon kenyon marked this pull request as ready for review May 18, 2020 22:04
@kenyon kenyon requested a review from a team as a code owner May 18, 2020 22:04
@kenyon
Copy link
Author

kenyon commented May 19, 2020

That latest build failure is because of timeouts. 🤷

@sheenaajay
Copy link

Thank you @kenyon for submitting the PR. WIll be looking into the timeout issue and have seen the same problem on master branch too. Thank you

@sheenaajay sheenaajay merged commit 253c693 into puppetlabs:master May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants