| author | Tomasz Zarna | 2011-08-02 10:19:09 (EDT) |
|---|---|---|
| committer | Matthias Sohn | 2011-08-02 10:19:09 (EDT) |
| commit | 6d293c7b06e219086959e80d495b5febe8ae530d (patch) (side-by-side diff) | |
| tree | 2fc8a935fbb9516f4e842909a6112a4d70637531 | |
| parent | d16085b3b913e5bc5e351c0a7461051e9973629a (diff) | |
| download | jgit-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.java | 3 |
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 |

