libgit2/libgit2 — pull request #861 by josh (2012-08-09 17:50:09+00:00)
Title: Parse ref oids without trailing newline

The libgit2 ref oid parser is kinda strict. It requires a trailing newline otherwise you get a reference exception. `git rev-parse` doesn't care and works without it.

I noticed this issue testing libgit2 on gist. It seems gists created via the web are formatted this way.

Not sure if this is the correct way to handle the issue. Also, my C might be bad.

/cc @vmg @rtomayko