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.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
attr | Loading commit data... | |
attr_index | Loading commit data... | |
bad_tag.git | Loading commit data... | |
config | Loading commit data... | |
deprecated-mode.git | Loading commit data... | |
diff | Loading commit data... | |
duplicate.git | Loading commit data... | |
empty_bare.git | Loading commit data... | |
empty_standard_repo/.gitted | Loading commit data... | |
filemodes | Loading commit data... | |
issue_592 | Loading commit data... | |
issue_592b | Loading commit data... | |
status | Loading commit data... | |
submod2 | Loading commit data... | |
submod2_target | Loading commit data... | |
submodules | Loading commit data... | |
template | Loading commit data... | |
testrepo/.gitted | Loading commit data... | |
testrepo.git | Loading commit data... | |
.gitattributes | Loading commit data... | |
.gitignore | Loading commit data... | |
big.index | Loading commit data... | |
gitgit.index | Loading commit data... |