mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-12-22 16:29:51 +01:00
Fix git sort
This commit is contained in:
@@ -256,7 +256,7 @@ public class GitBrowseCommand extends AbstractGitCommand
|
|||||||
|
|
||||||
private FileObject findChildren(FileObject parent, org.eclipse.jgit.lib.Repository repo, BrowseCommandRequest request, ObjectId revId, TreeWalk treeWalk) throws IOException {
|
private FileObject findChildren(FileObject parent, org.eclipse.jgit.lib.Repository repo, BrowseCommandRequest request, ObjectId revId, TreeWalk treeWalk) throws IOException {
|
||||||
List<TreeEntry> entries = new ArrayList<>();
|
List<TreeEntry> entries = new ArrayList<>();
|
||||||
while (treeWalk.next() && ++resultCount <= request.getLimit() + request.getOffset()) {
|
while (treeWalk.next()) {
|
||||||
entries.add(new TreeEntry(repo, treeWalk));
|
entries.add(new TreeEntry(repo, treeWalk));
|
||||||
}
|
}
|
||||||
sort(entries, TreeEntry::isDirectory, TreeEntry::getNameString);
|
sort(entries, TreeEntry::isDirectory, TreeEntry::getNameString);
|
||||||
|
|||||||
Reference in New Issue
Block a user