summaryrefslogtreecommitdiff
path: root/tests-clar/diff/patch.c
diff options
context:
space:
mode:
authorScott J. Goldman <scottjg@github.com>2013-01-05 00:46:39 -0800
committerScott J. Goldman <scottjg@github.com>2013-01-05 00:46:39 -0800
commitef82ff30f6dd643ca6aac13deac4b11b519128aa (patch)
treebd1b99a1c8a54d24f471fd9a3fd8eba332d2a76e /tests-clar/diff/patch.c
parent7511d8b42d2ab9e955cd630664ac893e6b35eb63 (diff)
downloadlibgit2-ef82ff30f6dd643ca6aac13deac4b11b519128aa.tar.gz
Handle packed refs with no trailing newlineno-newline-packed-refs
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.
Diffstat (limited to 'tests-clar/diff/patch.c')
0 files changed, 0 insertions, 0 deletions