Merge pull request #1193 from libgit2/no-newline-packed-refs Handle packed refs with no trailing newline