]> source.dussan.org Git - jgit.git/commit
Revert "Config: Distinguish between empty and null strings" 62/49862/3
authorJonathan Nieder <jrn@google.com>
Tue, 9 Jun 2015 22:54:52 +0000 (15:54 -0700)
committerJonathan Nieder <jrn@google.com>
Tue, 9 Jun 2015 22:58:12 +0000 (15:58 -0700)
commitcd3d952ec66fa3de24faecc413398b97aa37dc18
tree23d943e3cff7a17c14fcbddee14f73ed7ee6749c
parenta89dbbd87e587a8c123c96109136fee536322d1b
Revert "Config: Distinguish between empty and null strings"

This reverts commit 96eb3ee3976e7e9e3e118851fa614cce8a1f7d88, which
broke Gerrit tests that set a config value to 'null', serialize the
result, deserialize, and expect 'null' from Config.getString[1].

The intent of that commit was to make it possible to distinguish between
an absent and an empty config value, which we'll have to do with a new
method.

Revert the behavior change.  Keep the tests from 428cb23f2de8, since
they test the behavior more precisely than the old tests did.

[1] https://gerrit-review.googlesource.com/68452

Change-Id: Ie8042f380ea0e34e3203e1991aa0feb2e6e44641
Signed-off-by: Jonathan Nieder <jrn@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Config.java