summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aaca967)
raw | patch | inline | side by side (parent: aaca967)
author | Robert Fitzsimons <robfitz@273k.net> | |
Fri, 22 Dec 2006 19:38:13 +0000 (19:38 +0000) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 23 Dec 2006 07:18:15 +0000 (23:18 -0800) |
Only return one line of output and we don't need the refname value.
Signed-off-by: Robert Fitzsimons <robfitz@273k.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Robert Fitzsimons <robfitz@273k.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl | patch | blob | history |
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 80c04b88da6043baec1c0c5557ec29dd23a45d96..01e3a8adaa0977207965fee9d723bc4a1c817ada 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
$git_dir = "$projectroot/$path";
open($fd, "-|", git_cmd(), 'for-each-ref',
- '--format=%(refname) %(committer)',
+ '--format=%(committer)',
'--sort=-committerdate',
+ '--count=1',
'refs/heads') or return;
my $most_recent = <$fd>;
close $fd or return;