X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/55f06e7063188f3f6034f019e77a73880c5753c0dd1d95875fd36e7e1c87af7d..d5ca249cbe6db5b1ebe794cb3007f2989e36bd62bfad51bf7c2a6482a48ca159:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index 2ff0d7a..8cfa7b8 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -3797,7 +3797,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=-HEAD', '--sort=-committerdate', '--format=%(objectname) %(refname) %(subject)%00%(committer)', @patterns or return;