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

Commit on Windows not committing the entire message #133

Closed
davidhouweling opened this issue Aug 19, 2020 · 2 comments
Closed

Commit on Windows not committing the entire message #133

davidhouweling opened this issue Aug 19, 2020 · 2 comments

Comments

@davidhouweling
Copy link

Machine: Windows 10 Pro Version 2004
Setup: using option 2 - standalone

Issue: after filling out all the prompts, when you check the commit message it only includes the title. It doesn't include the body or footer content in the entirety is there as part of

execSync(`git commit -m "${commitMessage}"`, { stdio: [0, 1, 2] });

I verified it by doing a console.log and can see the content appropriately being multi-lined. I'm thinking its an issue with the git commit statement where for Windows we should use multiple -m commands instead of trying to do pass it all into 1. Alternatively try using a tool like cross-spawn or execa instead of the inbuilt child_process.

@davidhouweling
Copy link
Author

I decided to try using commitizen with option 1 - as a commitizen plugin and its working that way.

@ronyf
Copy link

ronyf commented Dec 22, 2020

Any updates?

Tal500 added a commit to orefalo/svelte-splitpanes that referenced this issue Dec 28, 2022
E0SelmY4V added a commit to E0SelmY4V/cz-customizable that referenced this issue Feb 12, 2024
As leoforfree#133 and leoforfree#211 said, at least Windows 10 cannot commit when there are many lines.
I have fixed it for standalone mode.
@davidhouweling davidhouweling closed this as not planned Won't fix, can't repro, duplicate, stale Oct 13, 2024
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

No branches or pull requests

2 participants