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

Change-Id: Ie2dde43da491fa27b25a2ad8014866d77d484b24
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Tomasz Zarna 2011-08-02 16:19:09 +02:00 committed by Matthias Sohn
parent d16085b3b9
commit 6d293c7b06
1 changed files with 2 additions and 1 deletions

View File

@ -194,7 +194,8 @@ public PullResult call() throws WrongRepositoryStateException,
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