From: Timo Hirvonen Date: Tue, 20 Jun 2006 13:41:05 +0000 (+0300) Subject: gitweb: Use $hash_base as $search_hash if possible X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/2da942cfb1d329e197699659ea9a6d15c7b8e7e73cbc522fbca4d399a18c1bf2 gitweb: Use $hash_base as $search_hash if possible $hash (h parameter) does not always point to a commit. Use $hash_base as $search_hash when it is defined. Signed-off-by: Timo Hirvonen Signed-off-by: Junio C Hamano --- diff --git a/gitweb.cgi b/gitweb.cgi index fec89e7..fc42778 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -322,7 +322,9 @@ EOF $searchtext = ""; } my $search_hash; - if (defined $hash) { + if (defined $hash_base) { + $search_hash = $hash_base; + } elsif (defined $hash) { $search_hash = $hash; } else { $search_hash = "HEAD";