gitweb: Fix bug in evaluate_path_info
authorJakub Narebski <jnareb@gmail.com>
Wed, 13 Oct 2010 11:33:48 +0000 (13:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Oct 2010 16:40:19 +0000 (09:40 -0700)
There was bug in parsing "project/:/file" and "project/:/" path_info
URLs, with implicit HEAD as 'hash_base'.

For such URLs the refname is empty, and before this fix regexp for
parsing path_info fragment assumed that it is always non-empty.

Refname cannot contain ':', as per 'git check-ref-format'.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found