Skip to content

GitCommit.raw_log only drop last msg line if blank#42

Merged
jankeromnes merged 3 commits intochristkv:masterfrom
scottnonnenberg:last-line
Apr 16, 2015
Merged

GitCommit.raw_log only drop last msg line if blank#42
jankeromnes merged 3 commits intochristkv:masterfrom
scottnonnenberg:last-line

Conversation

@scottnonnenberg
Copy link
Copy Markdown
Contributor

Fixes the message-dropping behavior I saw, potentially the same thing as #38.

@jankeromnes
Copy link
Copy Markdown
Collaborator

Hi @scottnonnenberg, thanks a lot for fixing this! Do you think we could also add a test that ensures one-line commit messages aren't being dropped in the future?

Comment thread lib/git/internal/git_commit.js Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nit: Please use output += here.

@scottnonnenberg
Copy link
Copy Markdown
Contributor Author

Unit tests added. Seems that the couple full repos under /test all have the expected trailing newline, so I couldn't use any existing fixture data.

@jankeromnes
Copy link
Copy Markdown
Collaborator

Awesome, thanks!

@jankeromnes jankeromnes merged commit c88e44a into christkv:master Apr 16, 2015
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.

2 participants