From 6d293c7b06e219086959e80d495b5febe8ae530d Mon Sep 17 00:00:00 2001 From: Tomasz Zarna Date: Tue, 2 Aug 2011 16:19:09 +0200 Subject: [PATCH] Don't hard-code section names, use ConfigConstants instead Change-Id: Ie2dde43da491fa27b25a2ad8014866d77d484b24 Signed-off-by: Matthias Sohn --- org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java index 8eae4027a..25dd52822 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java @@ -194,7 +194,8 @@ public class PullCommand extends GitCommand { String remoteUri; FetchResult fetchRes; if (isRemote) { - remoteUri = repoConfig.getString("remote", remote, + remoteUri = repoConfig.getString( + ConfigConstants.CONFIG_REMOTE_SECTION, remote, ConfigConstants.CONFIG_KEY_URL); if (remoteUri == null) { String missingKey = ConfigConstants.CONFIG_REMOTE_SECTION + DOT