From: James Moger Date: Fri, 28 Feb 2014 22:23:14 +0000 (-0500) Subject: Redirect to log page is the blobpage references a commit we can't find X-Git-Tag: v1.4.0~81 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0fec6711a6ca0bb18f21923fde16000702c3fa9c;p=gitblit.git Redirect to log page is the blobpage references a commit we can't find --- diff --git a/src/main/java/com/gitblit/wicket/pages/BlobPage.java b/src/main/java/com/gitblit/wicket/pages/BlobPage.java index c4eca10a..6c73ec10 100644 --- a/src/main/java/com/gitblit/wicket/pages/BlobPage.java +++ b/src/main/java/com/gitblit/wicket/pages/BlobPage.java @@ -82,8 +82,7 @@ public class BlobPage extends RepositoryPage { } } - // manually get commit because it can be null - RevCommit commit = JGitUtils.getCommit(r, objectId); + RevCommit commit = getCommit(); // blob page links add(new BookmarkablePageLink("blameLink", BlamePage.class,