From f00f9a518394ea91877566909ed91e42e9cbe5e3 Mon Sep 17 00:00:00 2001
From: Philip L. McMahon <philip.l.mcmahon@gmail.com>
Date: Sat, 04 Feb 2012 12:52:55 -0500
Subject: [PATCH] Add pre-commit hook which protects ref paths from non-FF updates or deletes unless the user is a member of an authorized team

---
 src/com/gitblit/wicket/pages/PatchPage.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/com/gitblit/wicket/pages/PatchPage.java b/src/com/gitblit/wicket/pages/PatchPage.java
index 02e4d38..0493473 100644
--- a/src/com/gitblit/wicket/pages/PatchPage.java
+++ b/src/com/gitblit/wicket/pages/PatchPage.java
@@ -22,6 +22,7 @@
 import org.eclipse.jgit.revwalk.RevCommit;
 
 import com.gitblit.GitBlit;
+import com.gitblit.utils.DiffUtils;
 import com.gitblit.utils.JGitUtils;
 import com.gitblit.utils.StringUtils;
 import com.gitblit.wicket.GitBlitWebSession;
@@ -61,7 +62,7 @@
 		if (!StringUtils.isEmpty(baseObjectId)) {
 			baseCommit = JGitUtils.getCommit(r, baseObjectId);
 		}
-		String patch = JGitUtils.getCommitPatch(r, baseCommit, commit, blobPath);
+		String patch = DiffUtils.getCommitPatch(r, baseCommit, commit, blobPath);
 		add(new Label("patchText", patch));
 		r.close();
 	}

--
Gitblit v1.9.1