diff options
author | Christian Halstrick <christian.halstrick@sap.com> | 2015-06-11 07:44:33 -0400 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org <gerrit@eclipse.org> | 2015-06-11 07:44:35 -0400 |
commit | 53fb3e3dd394a845688696bd4afa343002dc36c6 (patch) | |
tree | d6893ea31c186b142c2b497f9891c90e2b8b481e | |
parent | f9380fb4790d7f14f686cc6c56008c72437f3683 (diff) | |
parent | a1fd4980dfa302f4b14b64d2b2fa0d9b86a8e742 (diff) | |
download | jgit-53fb3e3dd394a845688696bd4afa343002dc36c6.tar.gz jgit-53fb3e3dd394a845688696bd4afa343002dc36c6.zip |
Merge "submodule test: Use config.unset instead of setting to null"
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/submodule/SubmoduleInitTest.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/submodule/SubmoduleInitTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/submodule/SubmoduleInitTest.java index 22e55fe729..2b46498470 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/submodule/SubmoduleInitTest.java +++ b/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); |