Browse Source

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

stable-4.1
Christian Halstrick 10 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
53fb3e3dd3
  1. 5
      org.eclipse.jgit.test/tst/org/eclipse/jgit/submodule/SubmoduleInitTest.java

5
org.eclipse.jgit.test/tst/org/eclipse/jgit/submodule/SubmoduleInitTest.java

@ -246,9 +246,8 @@ public class SubmoduleInitTest extends RepositoryTestCase {
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);

Loading…
Cancel
Save