aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2011-08-02 10:19:09 (EDT)
committerMatthias Sohn2011-08-02 10:19:09 (EDT)
commit6d293c7b06e219086959e80d495b5febe8ae530d (patch)
tree2fc8a935fbb9516f4e842909a6112a4d70637531
parentd16085b3b913e5bc5e351c0a7461051e9973629a (diff)
downloadjgit-6d293c7b06e219086959e80d495b5febe8ae530d.zip
jgit-6d293c7b06e219086959e80d495b5febe8ae530d.tar.gz
jgit-6d293c7b06e219086959e80d495b5febe8ae530d.tar.bz2
Don't hard-code section names, use ConfigConstants insteadrefs/changes/47/3947/2
Change-Id: Ie2dde43da491fa27b25a2ad8014866d77d484b24 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java3
1 files changed, 2 insertions, 1 deletions
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 8eae402..25dd528 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<PullResult> {
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