X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/c9e33b0d4c7baa3f960c7b43975ba9715a98ad6cf681c6ffcb7723ceffb4a277..186b594eac227d7c104bf0e0c84819ee4e69774cd0c9df2050ede3aecfa1a909:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index 4df6db5..df186d8 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -782,10 +782,10 @@ sub evaluate_path_info { 'history', ); - # we want to catch + # we want to catch, among others # [$hash_parent_base[:$file_parent]..]$hash_parent[:$file_name] my ($parentrefname, $parentpathname, $refname, $pathname) = - ($path_info =~ /^(?:(.+?)(?::(.+))?\.\.)?(.+?)(?::(.+))?$/); + ($path_info =~ /^(?:(.+?)(?::(.+))?\.\.)?([^:]+?)?(?::(.+))?$/); # first, analyze the 'current' part if (defined $pathname) { @@ -1069,6 +1069,7 @@ sub run_request { evaluate_uri(); evaluate_gitweb_config(); + evaluate_git_version(); check_loadavg(); # $projectroot and $projects_list might be set in gitweb config file @@ -1121,7 +1122,6 @@ sub evaluate_argv { sub run { evaluate_argv(); - evaluate_git_version(); $pre_listen_hook->() if $pre_listen_hook;