From: Michael Haggerty Date: Tue, 10 Apr 2012 05:30:22 +0000 (+0200) Subject: check_refname_component(): return 0 for zero-length components X-Git-Tag: v1.7.11-rc0~110^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/dac529e44fb9e8c0ee4628c0f947db8890950317?hp=dac529e44fb9e8c0ee4628c0f947db8890950317 check_refname_component(): return 0 for zero-length components Return 0 (instead of -1) for zero-length components. Move the interpretation of zero-length components as illegal to check_refname_format(). This will make it easier to extend check_refname_format() to also check whether directory names are valid. Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano ---