🏡 index : ~doyle/rgit.git

author Jordan Doyle <jordan@doyle.la> 2022-07-23 23:09:20.0 +01:00:00
committer Jordan Doyle <jordan@doyle.la> 2022-07-23 23:09:20.0 +01:00:00
commit
a082415e9c9960483e78096f8bb67934ecd459d7 [patch]
tree
7f326ab3857a5832bf76b40513c066b0b14420f5
parent
9a93c7442869f6813edfded6f66db72240ee3a0a
download
a082415e9c9960483e78096f8bb67934ecd459d7.tar.gz

Fix offsets when default branches are in use on log page



Diff

 src/methods/repo/log.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/methods/repo/log.rs b/src/methods/repo/log.rs
index c0ed726..5429120 100644
--- a/src/methods/repo/log.rs
+++ a/src/methods/repo/log.rs
@@ -75,7 +75,7 @@

    for branch in DEFAULT_BRANCHES {
        let commit_tree = repository.get().commit_tree(database, branch)?;
        let commits = commit_tree.fetch_latest(amount, 0).await;
        let commits = commit_tree.fetch_latest(amount, offset).await;

        if !commits.is_empty() {
            return Ok(commits);