fix(commit): fix multiline commits with newlines by LinusU · Pull Request #413 · commitizen/cz-cli · GitHub
Skip to content

fix(commit): fix multiline commits with newlines#413

Merged
LinusU merged 2 commits into
commitizen:masterfrom
LinusU:fix-multiline-commits
Jan 8, 2017
Merged

fix(commit): fix multiline commits with newlines#413
LinusU merged 2 commits into
commitizen:masterfrom
LinusU:fix-multiline-commits

Conversation

@LinusU

@LinusU LinusU commented Jan 8, 2017

Copy link
Copy Markdown
Contributor

This refactors args to always be an array, instead of converting it to a string with escaping and quoting. It uses spawn instead of exec which takes an array of arguments instead of a string.

I'm having some other strange issues with my local tests so uploading now to see how CI is...

Also, this fixes #411

@LinusU

LinusU commented Jan 8, 2017

Copy link
Copy Markdown
Contributor Author

@jimthedev

Copy link
Copy Markdown
Member

I'm ok with using execa

@LinusU LinusU force-pushed the fix-multiline-commits branch from a1c26c6 to 8903010 Compare January 8, 2017 16:34
@LinusU

LinusU commented Jan 8, 2017

Copy link
Copy Markdown
Contributor Author

Awesome! I'll send a separate PR with execa and some other small refactoring shortly :) merging this for now

btw. I don't think we have ever talked about any "merge policy", I know that you don't have too much time so have been merging things as I see fit. I hope that this is okay, if you want to have some system where we give LGTM or approve commits that would be very fine for me as well 👍

@LinusU LinusU merged commit 825485c into commitizen:master Jan 8, 2017
@LinusU LinusU deleted the fix-multiline-commits branch January 8, 2017 16:51
@jimthedev

Copy link
Copy Markdown
Member

That'd be great. I am open to a policy if that makes things easier. I generally release asap and am ok with you doing the same. I'm generally opposed to large releases and prefer to be small and nimble.

@LinusU

LinusU commented Jan 8, 2017

Copy link
Copy Markdown
Contributor Author

That sounds great, I think keeping it as is will work good. I generally merge the smaller things, and stuff that I think that you might want to comment on I'll wait a bit with 👍

I'm generally opposed to large releases and prefer to be small and nimble.

Couldn't agree more 👍

@andreasonny83

Copy link
Copy Markdown

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.

Failing windows multiline tests

3 participants