libgit2/libgit2 — pull request #1193 by scottjg (2013-01-05 08:46:54+00:00)
Title: Handle packed refs with no trailing newline

I saw a repo in the wild today which had a master branch ref which was packed, but had no trailing newline. Git handled it fine, but libgit2 choked on it. Fix seems simple enough. If we don't see a newline, assume the end of the buffer is the end of the ref line.