Merge "submodule test: Use config.unset instead of setting to null"

This commit is contained in:
Christian Halstrick 2015-06-11 07:44:33 -04:00 committed by Gerrit Code Review @ Eclipse.org
commit 53fb3e3dd3
1 changed files with 2 additions and 3 deletions

View File

@ -246,9 +246,8 @@ public void resolveWorkingDirectoryRelativeUrl() throws IOException,
if (File.separatorChar == '\\')
base = base.replace('\\', '/');
FileBasedConfig config = db.getConfig();
config.setString(ConfigConstants.CONFIG_REMOTE_SECTION,
Constants.DEFAULT_REMOTE_NAME, ConfigConstants.CONFIG_KEY_URL,
null);
config.unset(ConfigConstants.CONFIG_REMOTE_SECTION,
Constants.DEFAULT_REMOTE_NAME, ConfigConstants.CONFIG_KEY_URL);
config.save();
SubmoduleWalk generator = SubmoduleWalk.forIndex(db);