]> Lady’s Gitweb - Gitweb/commit
gitweb: Fix bug in evaluate_path_info
authorJakub Narebski <redacted>
Wed, 13 Oct 2010 11:33:48 +0000 (13:33 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:30 +0000 (00:51 -0400)
commit186b594eac227d7c104bf0e0c84819ee4e69774cd0c9df2050ede3aecfa1a909
tree82f2ac67aa3bdcd00367b59441d68ba04db1ef1f8a1c8f136130cbfae187aaaf
parent03a7f59847ec4048581aa7035ecd0355baeac8d9796b1fa4fc2ee99517398576
gitweb: Fix bug in evaluate_path_info

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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.205792 seconds and 4 git commands to generate.