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-Tag: v1.4.1-rc1~2^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4c5c20261c5403650a31a91ebce0cc9444182383;p=git.git 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/gitweb.cgi b/gitweb/gitweb.cgi index f2e50462d..e2108dee7 100755 --- a/gitweb/gitweb.cgi +++ b/gitweb/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";