2759: empty files not shown in diffs

jtve****@gmai***** (Google Code) (Is this you? Claim this profile.)
Feb. 3, 2014
895
What version are you running?

reviewboard 1.7beta3

What steps will reproduce the problem?
1. touch empty.txt
2. git add empty.txt
3. git commit 
4. post-review
get: 
(rvbrd)datl9mjveatch:reviewboard jveatch$ post-review --server=http://localhost:8080/ 
Error uploading diff
Your review request still exists, but the diff is not attached.
5. on the same branch: echo asdf > asdf.txt
6. commit
7. post-review
This review has a diff that only shows asdf.txt

What is the expected output? What do you see instead?

I expect to see the empty file in the diff. Instead I cannot upload a diff that only adds an empty file, and other diffs that have empty files do not display them.

What operating system are you using? What browser?
OS X
chrome v22

Please provide any additional information below.
david
#1 david
  • +Component-DiffViewer