OSDN Git Service

gitweb: Fix shortlog only showing HEAD revision.
authorRobert Fitzsimons <robfitz@273k.net>
Wed, 3 Jan 2007 20:25:55 +0000 (20:25 +0000)
committerJunio C Hamano <junkio@cox.net>
Wed, 3 Jan 2007 20:48:39 +0000 (12:48 -0800)
My change in 190d7fdcf325bb444fa806f09ebbb403a4ae4ee6 had a small bug
found by Michael Krufky which caused the passed in hash value to be
ignored, so shortlog would only show the HEAD revision.

Signed-off-by: Robert Fitzsimons <robfitz@273k.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl

index 2ead917..2179054 100755 (executable)
@@ -4423,7 +4423,7 @@ sub git_shortlog {
        }
        my $refs = git_get_references();
 
-       my @commitlist = parse_commits($head, 101, (100 * $page));
+       my @commitlist = parse_commits($hash, 101, (100 * $page));
 
        my $paging_nav = format_paging_nav('shortlog', $hash, $head, $page, (100 * ($page+1)));
        my $next_link = '';