]> source.dussan.org Git - gitblit.git/commitdiff
Redirect to log page is the blobpage references a commit we can't find
authorJames Moger <james.moger@gitblit.com>
Fri, 28 Feb 2014 22:23:14 +0000 (17:23 -0500)
committerJames Moger <james.moger@gitblit.com>
Sat, 1 Mar 2014 14:21:32 +0000 (09:21 -0500)
src/main/java/com/gitblit/wicket/pages/BlobPage.java

index c4eca10abce4dfbde3e3118c1beeb14de5466cc9..6c73ec10723e652df28d71913f95e87b2c9a9bdb 100644 (file)
@@ -82,8 +82,7 @@ public class BlobPage extends RepositoryPage {
                                }\r
                        }\r
 \r
-                       // manually get commit because it can be null\r
-                       RevCommit commit = JGitUtils.getCommit(r, objectId);\r
+                       RevCommit commit = getCommit();\r
 \r
                        // blob page links\r
                        add(new BookmarkablePageLink<Void>("blameLink", BlamePage.class,\r