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(commit): fix windows by separating add and commit exec #55

Merged
merged 1 commit into from
Jun 8, 2016

Conversation

Tapppi
Copy link
Member

@Tapppi Tapppi commented Jun 8, 2016

Windows cmd doesn't support separating commands with ';'. Fix by separating
the execution of the 'git add' and 'git commit' commands.

Fixes #49

@Tapppi Tapppi changed the title fix(commit): fix windows commits by separating git add and commit exe… fix(commit): fix windows by separating add and commit exec Jun 8, 2016

function handleExecError (err, stderr) {
// If exec returns an error or content in stderr, log it and exit with return code 1
var errMessage = err || stderr
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To preserve the old functionality, this should probably be:

var errMessage = stderr || (err && err.message)

@bcoe
Copy link
Member

bcoe commented Jun 8, 2016

@Tapppi after you address @nexdrew's comments, seems great 👍 it might also be worth configuring this project for AppVeyor. We can use this config as a basis?

@Tapppi Tapppi force-pushed the 49-fix-win-commit branch from 63f8450 to 7fdf045 Compare June 8, 2016 12:03
Windows cmd doesn't support separating commands with ';'. Fix by separating
the execution of the 'git add' and 'git commit' commands. Added separate
test for git add.

Fixes conventional-changelog#49
@Tapppi Tapppi force-pushed the 49-fix-win-commit branch from 7fdf045 to 6aa70e1 Compare June 8, 2016 12:04
@coveralls
Copy link

coveralls commented Jun 8, 2016

Coverage Status

Coverage increased (+0.1%) to 95.402% when pulling 6aa70e1 on Tapppi:49-fix-win-commit into 5e56185 on conventional-changelog:master.

@coveralls
Copy link

coveralls commented Jun 8, 2016

Coverage Status

Coverage increased (+0.1%) to 95.402% when pulling 6aa70e1 on Tapppi:49-fix-win-commit into 5e56185 on conventional-changelog:master.

@Tapppi
Copy link
Member Author

Tapppi commented Jun 8, 2016

@nexdrew If you can't think of anything else to change, I think this seems fine now?
@bcoe That's a great idea, although merging coverage is not so simple with both Travis and AppVeyor (see #57)

@bcoe
Copy link
Member

bcoe commented Jun 8, 2016

:shipit: happy to land this and address appveyor in another issue.

@nexdrew
Copy link
Member

nexdrew commented Jun 8, 2016

LGTM 👍 Thanks for the contributions!

@nexdrew nexdrew merged commit f361c46 into conventional-changelog:master Jun 8, 2016
@Tapppi Tapppi deleted the 49-fix-win-commit branch June 8, 2016 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants