]> source.dussan.org Git - jgit.git/commit
FS: Allow to manually set the path to the Git system config file 77/48477/3
authorSebastian Schuberth <sschuberth@gmail.com>
Fri, 22 May 2015 15:21:27 +0000 (17:21 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 25 May 2015 19:23:21 +0000 (21:23 +0200)
commit7ce6abe8584b228c408a733bfca77e9c2f176e00
tree890888be453894ecffa50cf198704c889fa782e0
parent9599f3f1a6111a12b07a8a51755d3ca2452d53d3
FS: Allow to manually set the path to the Git system config file

Now that d7a4473 removed the gitprefix property, we did not have a way to
specify the path to the Git system config file in case
discoverGitSystemConfig() fails. Fix that by introducing a member variable
that caches the result of discoverGitSystemConfig() as well as a setter
method to overwrite the content of that variable.

Change-Id: Icd965bffbe2f11b18c9505ee2ddd2afad5b64d70
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java
org.eclipse.jgit/src/org/eclipse/jgit/util/SystemReader.java