diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2012-10-15 13:51:25 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2012-10-15 14:00:19 +0200 |
commit | 47f44b6ee424921cf5aef064fe6ecf768c6ec5ea (patch) | |
tree | baf5cffab7b8dc1d85679a931b952809692ac818 /tests-clar/diff/diffiter.c | |
parent | 9d9288f417968a7fd583786a749c4f7dfa258f89 (diff) | |
download | libgit2-47f44b6ee424921cf5aef064fe6ecf768c6ec5ea.tar.gz |
refs: loosen the OID parsing
We used to require loose references to contain only an OID (possibly
after trimming the string). This is however not enough for letting us
lookup FETCH_HEAD, which can have a lot of content after the initial
OID.
Change the parsing rules so that a loose refernce must e at least 40
bytes long and the 41st (if it's there) must be accepted by
isspace(3). This makes the trim unnecessary, so only do it for
symrefs. This fixes #977.
Diffstat (limited to 'tests-clar/diff/diffiter.c')
0 files changed, 0 insertions, 0 deletions