Message ID | 20210606085116.13739-1-greg@hurrell.net (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [RFC] gitweb: use HEAD as primary sort key in git_get_heads_list() | expand |
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index e09e024a09..e5270b0291 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -3796,7 +3796,8 @@ sub git_get_heads_list { my @headslist; open my $fd, '-|', git_cmd(), 'for-each-ref', - ($limit ? '--count='.($limit+1) : ()), '--sort=-committerdate', + ($limit ? '--count='.($limit+1) : ()), + '--sort=-committerdate', '--sort=-HEAD', '--format=%(objectname) %(refname) %(subject)%00%(committer)', @patterns or return;