-
Notifications
You must be signed in to change notification settings - Fork 3
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 messages do not include an ending carriage return #49
Comments
Hi, thanks for reporting. I'm not sure about the behavior here. Doesn't adding a carriage return would break the Commit message with no body? I want to keep the Whatever the decision, I will at least add an option ( |
A quick test using the standard git
Interesting - reading the docs for
From this one could argue that it's up to the hook script from Gerrit to add that blank line - but it appears that tug's behaviour is different to git. |
Interesting - using So this may not be required if I just update my hooks - tho it may be useful to have regardless. |
In your test you used ➜ git commit --allow-empty -m "First line" -m "Second line" -m "Third line"
[master fa47988] First line
➜ git log
commit fa479888ea93683f35ac8e7edb2c99920c814c30 (HEAD -> master)
Author: foo <foo@bar.com>
Date: Sat Jan 30 11:03:27 2021 +0100
First line
Second line
Third line But I think commit 6f11f475ef53347b57474abce680476780034644 (HEAD -> master) <---- turbogit
Author: foo <foo@bar.com>
Date: Sat Jan 30 11:11:04 2021 +0100
build(bug-1234): Updated dependencies
commit db5856c9696c224bf1ebaa507675653a413715e8 <---- git commit
Author: foo <foo@bar.com>
Date: Sat Jan 30 11:09:06 2021 +0100
build(bug-1234): Updated dependencies Do you agree with that? |
Closing since I think it's the expected behavior. |
Describe the bug
When making a commit, the message does not include a terminating carriage return in it's message, this
causes problems with tooling/hooks that update the commit message and add footers/trailers (such as the Gerrit code review tool).
This means you end up with a message like:
which doesn't include a blank line separating the commit message from it's footers.
To Reproduce
Steps
-e
to edit the messageExpected behavior
Actual behavior
Versions
The text was updated successfully, but these errors were encountered: