From a082415e9c9960483e78096f8bb67934ecd459d7 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Sat, 23 Jul 2022 23:09:20 +0100 Subject: [PATCH] Fix offsets when default branches are in use on log page --- 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); -- rgit 0.1.3