James Moger
2011-05-26 2a7306a1d92522569a8bb6e5a7c0bcdd5cf4cfaa
src/com/gitblit/wicket/pages/PatchPage.java
@@ -57,13 +57,11 @@
         return;
      }
      
      String patch;
      if (StringUtils.isEmpty(baseObjectId)) {
         patch = JGitUtils.getCommitPatch(r, commit, blobPath);
      } else {
         RevCommit baseCommit = JGitUtils.getCommit(r, baseObjectId);
         patch = JGitUtils.getCommitPatch(r, baseCommit, commit, blobPath);
      RevCommit baseCommit = null;
      if (!StringUtils.isEmpty(baseObjectId)) {
         baseCommit = JGitUtils.getCommit(r, baseObjectId);
      }
      String patch = JGitUtils.getCommitPatch(r, baseCommit, commit, blobPath);
      add(new Label("patchText", patch));
      r.close();
   }