------------------------------------------------------------------------------
To reply, visit https://hellosplat.com/s/beanbag/tickets/4566/
------------------------------------------------------------------------------

New ticket #4566 by anshnd
For Beanbag, Inc. > RBTools

Status: New
Tags: Priority:Medium, Type:Defect


------------------------------------------------------------------------------
rbt post strips newlines in muli-line git comments
==============================================================================

# What version are you running?
0.7.10

# What steps will reproduce the problem?
1. git commit -m $'first line\nsecond line'
2. rbt post -o


# What is the expected output? What do you see instead?
The description in ReviewBoard has lines joined together.  
If you add -s option the added timestamp on the commit message
joins the lines in the commit as well.

# What operating system are you using?
MacOS

# Attach the debug out from the command.

```
$ rbt <command> --debug <args><debug output>
...
>>> Running: git log --reverse --pretty=format:%s%n%n%b 
>>> ^e325f0f4d5900778ebf31983855d7ef60afca72b 
>>> 00fe06e0212a9aa2329512f22fe80a00ac9661eb
```
note %s%n%n%b that it's getting the subject which Git interprets
as first paragraph in a single line followed by two newlines and 
the 'body' which is the rest.

# Please provide any additional information below.
The solution is to run with format:%B (raw body) as shown at 
https://git-scm.com/docs/git-log That way rbt does not mangle git's commit 
message
and reports it correctly to ReviewBoard


------------------------------------------------------------------------------

-- 
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at https://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.

Reply via email to