summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-02-28 17:23:14 -0500
committerJames Moger <james.moger@gitblit.com>2014-03-01 09:21:32 -0500
commit0fec6711a6ca0bb18f21923fde16000702c3fa9c (patch)
tree242e97e2a4fc6feae675cf7d156cb08e5acaeeee /src/main
parentea3abfdfb25eaca1017f23fa25e7a485fc1f049a (diff)
downloadgitblit-0fec6711a6ca0bb18f21923fde16000702c3fa9c.tar.gz
gitblit-0fec6711a6ca0bb18f21923fde16000702c3fa9c.zip
Redirect to log page is the blobpage references a commit we can't find
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/BlobPage.java3
1 files changed, 1 insertions, 2 deletions
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<Void>("blameLink", BlamePage.class,