-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Diff in git commit -v
interpreted as part of the body, causing validation failure.
#41
Comments
The diff can also cause a false positive on the body length:
|
git commit -v
interpreted as part of the body, causing validation failure.
Yes the Cap'n removes comment lines from your commit message before validating it. Somehow this line
makes git ignore all lines below. |
This is fixed in The odd thing I noticed.
everything works now.
But if I add a space or an empty line to the commit message it fails like the version without |
Empty commiy message (completely deleting ALL content from the file buffer including comments):
Having an empty line:
Just exiting:
|
I don't want to scream "wolf" too fast, but this seems to be a git issue. For some reason the |
When commiting with
git commit -v
If I enter the commit message with only a subject and a new line, the validator passes:
If I enter the commit message with only a subject, the validator fails:
I would guess this is because
-v
shows a diff after the commted text in the message, which GIT ignores, but I guess the Captain just strips the commted text? (?)Full message with
git commit -v
from above:The text was updated successfully, but these errors were encountered: