]> source.dussan.org Git - jgit.git/commitdiff
Don't hard-code section names, use ConfigConstants instead 47/3947/2
authorTomasz Zarna <Tomasz.Zarna@pl.ibm.com>
Tue, 2 Aug 2011 14:19:09 +0000 (16:19 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 2 Aug 2011 14:19:09 +0000 (16:19 +0200)
Change-Id: Ie2dde43da491fa27b25a2ad8014866d77d484b24
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java

index 8eae4027a120c232d1f2a590847b6c26ba7620d7..25dd52822a452ad2dbb39b4d00e66954f359e062 100644 (file)
@@ -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