refs.c: handle REFNAME_REFSPEC_PATTERN at end of page
authorDavid Turner <dturner@twopensource.com>
Sat, 5 Jul 2014 19:00:59 +0000 (12:00 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Jul 2014 18:05:43 +0000 (11:05 -0700)
commit6d17dc1dd3909a9e8a5a915a6ff15d4c64c58290
tree051e2e1597e5aec8d9374d85200ce680b5597be2
parent745224e04a03e4544c58d5d38d3c54f67100f8eb
refs.c: handle REFNAME_REFSPEC_PATTERN at end of page

When a ref crosses a memory page boundary, we restart the parsing
at the beginning with the bytewise code.  Pass the original flags
to that code, rather than the current flags.

Reported-By: Øyvind A. Holm <sunny@sunbase.org>
Signed-off-by: David Turner <dturner@twitter.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c