From 4c5c20261c5403650a31a91ebce0cc9444182383 Mon Sep 17 00:00:00 2001 From: Timo Hirvonen Date: Tue, 20 Jun 2006 16:41:05 +0300 Subject: [PATCH] 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 --- gitweb/gitweb.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"; -- 2.30.2