From 234933ef14ca0ff2175235bc42bf1aa40040aa5d Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Fri, 27 Sep 2013 21:31:17 -0400 Subject: [PATCH] Merge receive processing into one class --- src/main/java/com/gitblit/git/GitblitUploadPackFactory.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gitblit/git/GitblitUploadPackFactory.java b/src/main/java/com/gitblit/git/GitblitUploadPackFactory.java index 1756ac5..6c06fa3 100644 --- a/src/main/java/com/gitblit/git/GitblitUploadPackFactory.java +++ b/src/main/java/com/gitblit/git/GitblitUploadPackFactory.java @@ -16,7 +16,6 @@ package com.gitblit.git; import java.util.ArrayList; -import java.util.Iterator; import java.util.List; import java.util.Map; @@ -30,6 +29,7 @@ import org.eclipse.jgit.transport.resolver.ServiceNotEnabledException; import org.eclipse.jgit.transport.resolver.UploadPackFactory; +import com.gitblit.Constants; import com.gitblit.GitBlit; import com.gitblit.models.UserModel; @@ -94,7 +94,7 @@ // JGit's RefMap is custom and does not support iterator removal :( List<String> toRemove = new ArrayList<String>(); for (String ref : refs.keySet()) { - if (ref.startsWith("refs/gitblit/")) { + if (ref.startsWith(Constants.R_GITBLIT)) { toRemove.add(ref); } } @@ -104,4 +104,4 @@ return refs; } } -} +} \ No newline at end of file -- Gitblit v1.9.1