-
Notifications
You must be signed in to change notification settings - Fork 145
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
Certain commit makes barkeep explode #64
Comments
Looks like it happens on the first commit of any repo; also happens on this one: http://barkeep.sv2/commits/ingestion-testing/cde12e52685dc8fe3d6ca4d9af1f0a9c5ed2446d which is the first commit in the ingestion-testing repo. |
I'll take a look tonight |
i've come to the conclusion that i have no business parsing unified diffs. It's possible it has something to do with this diff being only one line long |
This did not fix the issue for me. I get a different stack trace, but there's still a 500 from the same file. |
1461d6d fixes the exception, but causes the diff to lose information. the (second) cause of the bug is trailing newlines in diffs getting eaten by String.split("\n"). The fix is to pass a negative max splits argument to .split. |
fixed in fb46059 |
Cool, LGTM. |
(From Mike)
The commit
<barkeep url>/commits/uploader/707533b291bc6871655425746dae75e28fc14717
produces a 500:The text was updated successfully, but these errors were encountered: