OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49f582a
)
gitweb: Use $hash_base as $search_hash if possible
author
Timo Hirvonen
<tihirvon@gmail.com>
Tue, 20 Jun 2006 13:41:05 +0000
(16:41 +0300)
committer
Junio C Hamano
<junkio@cox.net>
Thu, 22 Jun 2006 09:23:12 +0000
(
02:23
-0700)
$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 <tihirvon@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.cgi
patch
|
blob
|
history
diff --git
a/gitweb/gitweb.cgi
b/gitweb/gitweb.cgi
index
f2e5046
..
e2108de
100755
(executable)
--- 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";