Details
-
Bug
-
Resolution: Fixed
-
Medium
Description
Diffstat always reports null lines added on an added file.
How to reproduce
- View commit that has one file added, with one line added (even says so in the UI "Files changed" section)
- Visit http://restbrowser.bitbucket.org/
- GET https://api.bitbucket.org/1.0/repositories/cheryl/test-git/changesets/49087aa/diffstat
Actual result
[
{
"type": "added",
"file": "testfile.txt",
"diffstat": {
"removed": null,
"added": null
}
}
]
Expected result
[
{
"type": "added",
"file": "testfile.txt",
"diffstat": {
"removed": 0,
"added": 1
}
}
]