From: James Moger Date: Fri, 23 Dec 2011 13:18:16 +0000 (-0500) Subject: Fixed revlog where start of range is the zeroId X-Git-Tag: v0.8.0~57 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5386a2be537303e68d27bdaa4d9c62c09493c654;p=gitblit.git Fixed revlog where start of range is the zeroId --- diff --git a/src/com/gitblit/utils/JGitUtils.java b/src/com/gitblit/utils/JGitUtils.java index e73ee800..d694ee28 100644 --- a/src/com/gitblit/utils/JGitUtils.java +++ b/src/com/gitblit/utils/JGitUtils.java @@ -1001,7 +1001,14 @@ public class JGitUtils { RevWalk rw = new RevWalk(repository); rw.markStart(rw.parseCommit(endRange)); - rw.markUninteresting(rw.parseCommit(startRange)); + if (startRange.equals(ObjectId.zeroId())) { + // maybe this is a tag or an orphan branch + list.add(rw.parseCommit(endRange)); + rw.dispose(); + return list; + } else { + rw.markUninteresting(rw.parseCommit(startRange)); + } Iterable revlog = rw; for (RevCommit rev : revlog) {