From 0fec6711a6ca0bb18f21923fde16000702c3fa9c Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 28 Feb 2014 17:23:14 -0500 Subject: Redirect to log page is the blobpage references a commit we can't find --- src/main/java/com/gitblit/wicket/pages/BlobPage.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/java/com/gitblit/wicket/pages/BlobPage.java') 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, -- cgit v1.2.3