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

fix(commits): Use --no-color for git branch-command #331

Conversation

PAkerstrand
Copy link
Contributor

Running semantic-release fails locally if/when git branch produces colored output. This PR simply adds --no-color to the executed command. With this fix I get the next version correctly, while previously I would get an ENOTINHISTORY-error, since the check does not anticipate color codes in the branch names.

Before After
1____project_stylizr__bash_ 1____project_stylizr__bash_

When `git branch --contains ${commit}` has colored output the `inHistory` check failed
@boennemann
Copy link
Member

Great catch, thank you!

@boennemann boennemann merged commit f239f2f into semantic-release:caribou Nov 21, 2016
@PAkerstrand PAkerstrand deleted the fix/no-color-in-contains-check branch November 21, 2016 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants