Browse Source

Don't hard-code section names, use ConfigConstants instead

Change-Id: Ie2dde43da491fa27b25a2ad8014866d77d484b24
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-1.1
Tomasz Zarna 13 years ago committed by Matthias Sohn
parent
commit
6d293c7b06
  1. 3
      org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java

3
org.eclipse.jgit/src/org/eclipse/jgit/api/PullCommand.java

@ -194,7 +194,8 @@ public class PullCommand extends GitCommand<PullResult> {
String remoteUri; String remoteUri;
FetchResult fetchRes; FetchResult fetchRes;
if (isRemote) { if (isRemote) {
remoteUri = repoConfig.getString("remote", remote, remoteUri = repoConfig.getString(
ConfigConstants.CONFIG_REMOTE_SECTION, remote,
ConfigConstants.CONFIG_KEY_URL); ConfigConstants.CONFIG_KEY_URL);
if (remoteUri == null) { if (remoteUri == null) {
String missingKey = ConfigConstants.CONFIG_REMOTE_SECTION + DOT String missingKey = ConfigConstants.CONFIG_REMOTE_SECTION + DOT

Loading…
Cancel
Save