Paul Martin
2016-04-29 811cf093827e31f7ece5d2b24c56f2dd9cc800de
src/main/java/com/gitblit/wicket/pages/EditFilePage.java
@@ -96,12 +96,10 @@
      Fragment fragment;
      String displayedCommitId = commit.getId().getName();
      MarkupDocument markupDoc = processor.parse(repositoryName, displayedCommitId, documentPath, markupText);
      logger.trace("Loading Edit File page: " + displayedCommitId);
      if (currentUser.canEdit(getRepositoryModel()) && JGitUtils.isTip(getRepository(), objectId.toString())) {
         
         final Model<String> documentContent = new Model<String>(markupDoc.markup);
         final Model<String> documentContent = new Model<String>(markupText);
         final Model<String> commitMessage = new Model<String>("Document update");
         final Model<String> commitIdAtLoad = new Model<String>(displayedCommitId);
         
@@ -181,6 +179,7 @@
           
      } else {
         
         MarkupDocument markupDoc = processor.parse(repositoryName, displayedCommitId, documentPath, markupText);
         final Model<String> documentContent = new Model<String>(markupDoc.html);
         
         fragment = new Fragment("doc", "plainContent", this);