Do not read ~/.gitconfig during JUnit tests
commitf7b4f67e7c4398a45ffd231f8950a0db6f1ddc24
authorYann Simon <yann.simon.fr@gmail.com>
Tue, 24 Mar 2009 13:36:40 +0000 (24 14:36 +0100)
committerShawn O. Pearce <sop@google.com>
Thu, 26 Mar 2009 17:38:19 +0000 (26 10:38 -0700)
tree928e2a4ed4684a65d5f80881c39a11415a5fe989
parente3440623e935f92420c1624d58aafd70140360c4
Do not read ~/.gitconfig during JUnit tests

Extend the SystemReader interface to add the responsibility to get the
user's global configuration.  This extension is used in the JUnit
tests to provide a custom global configuration instance independent
from ~/.gitconfig.

Signed-off-by: Yann Simon <yann.simon.fr@gmail.com>
Signed-off-by: Shawn O. Pearce <sop@google.com>
org.spearce.jgit.test/tst/org/spearce/jgit/lib/RepositoryConfigTest.java
org.spearce.jgit.test/tst/org/spearce/jgit/lib/RepositoryTestCase.java
org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java
org.spearce.jgit/src/org/spearce/jgit/util/SystemReader.java