diff options
| author | Tomasz Zarna | 2011-08-02 14:19:09 +0000 |
|---|---|---|
| committer | Matthias Sohn | 2011-08-02 14:19:09 +0000 |
| commit | 6d293c7b06e219086959e80d495b5febe8ae530d (patch) | |
| tree | 2fc8a935fbb9516f4e842909a6112a4d70637531 | |
| parent | d16085b3b913e5bc5e351c0a7461051e9973629a (diff) | |
| download | jgit-6d293c7b06e219086959e80d495b5febe8ae530d.tar.gz jgit-6d293c7b06e219086959e80d495b5febe8ae530d.tar.xz jgit-6d293c7b06e219086959e80d495b5febe8ae530d.zip | |
Don't hard-code section names, use ConfigConstants instead
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 8eae4027a1..25dd52822a 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 |
