From 4fcac9d2cbdafb51e3ee9ca3b3da64fd86103174 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Tue, 26 Nov 2013 15:58:15 -0500
Subject: [PATCH] Remove artifact setting from manager dialog

---
 src/main/java/com/gitblit/FederationPullExecutor.java |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/main/java/com/gitblit/FederationPullExecutor.java b/src/main/java/com/gitblit/FederationPullExecutor.java
index ad1022c..831c7a5 100644
--- a/src/main/java/com/gitblit/FederationPullExecutor.java
+++ b/src/main/java/com/gitblit/FederationPullExecutor.java
@@ -74,7 +74,7 @@
 	/**
 	 * Constructor for specifying a single federation registration. This
 	 * constructor is used to schedule the next pull execution.
-	 * 
+	 *
 	 * @param registration
 	 */
 	private FederationPullExecutor(FederationModel registration) {
@@ -85,7 +85,7 @@
 	 * Constructor to specify a group of federation registrations. This is
 	 * normally used at startup to pull and then schedule the next update based
 	 * on each registrations frequency setting.
-	 * 
+	 *
 	 * @param registrations
 	 * @param isDaemon
 	 *            if true, registrations are rescheduled in perpetuity. if
@@ -137,7 +137,7 @@
 	/**
 	 * Mirrors a repository and, optionally, the server's users, and/or
 	 * configuration settings from a origin Gitblit instance.
-	 * 
+	 *
 	 * @param registration
 	 * @throws Exception
 	 */
@@ -153,7 +153,7 @@
 							c, registrationFolder, registration.name));
 			return;
 		}
-		File repositoriesFolder = new File(GitBlit.getString(Keys.git.repositoriesFolder, "git"));
+		File repositoriesFolder = GitBlit.getRepositoriesFolder();
 		File registrationFolderFile = new File(repositoriesFolder, registrationFolder);
 		registrationFolderFile.mkdirs();
 
@@ -189,12 +189,12 @@
 							repositoryName.indexOf(DOT_GIT_EXT));
 				}
 			}
-			
+
 			// confirm that the origin of any pre-existing repository matches
 			// the clone url
 			String fetchHead = null;
 			Repository existingRepository = GitBlit.self().getRepository(repositoryName);
-			
+
 			if (existingRepository == null && GitBlit.self().isCollectingGarbage(repositoryName)) {
 				logger.warn(MessageFormat.format("Skipping local repository {0}, busy collecting garbage", repositoryName));
 				continue;
@@ -253,13 +253,13 @@
 								String branch = org.eclipse.jgit.lib.Constants.R_HEADS
 										+ ref.displayName.substring(ref.displayName.indexOf('/') + 1);
 								String hash = ref.getReferencedObjectId().getName();
-								
+
 								JGitUtils.setBranchRef(r, branch, hash);
 								logger.info(MessageFormat.format("     resetting {0} of {1} to {2}", branch,
 										repository.name, hash));
 							}
 						}
-						
+
 						String newHead;
 						if (StringUtils.isEmpty(repository.HEAD)) {
 							newHead = newFetchHead;
@@ -298,7 +298,7 @@
 					federationSets.addAll(repository.federationSets);
 				}
 				repository.federationSets = new ArrayList<String>(federationSets);
-				
+
 				// merge indexed branches
 				Set<String> indexedBranches = new HashSet<String>();
 				if (rm.indexedBranches != null) {
@@ -487,7 +487,7 @@
 	/**
 	 * Sends a status acknowledgment to the origin Gitblit instance. This
 	 * includes the results of the federated pull.
-	 * 
+	 *
 	 * @param registration
 	 * @throws Exception
 	 */
@@ -507,7 +507,7 @@
 
 	/**
 	 * Schedules the next check of the federated Gitblit instance.
-	 * 
+	 *
 	 * @param registration
 	 */
 	private void schedule(FederationModel registration) {

--
Gitblit v1.9.1