[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Specifying http.sslVerify from a Configuration File or in the Runtime

Yes, the system variables that jgit reads are defined in jgit/lib/constants, and GIT_CONFIG is not there. I will try to provide a fix for this, if not will file a bug.


On Wed, Apr 17, 2013 at 5:19 PM, Alex Blewitt <alex.blewitt@xxxxxxxxx> wrote:
On Wed, Apr 17, 2013 at 9:29 AM, Alex Blewitt <alex.blewitt@xxxxxxxxx> wrote:
On 17 Apr 2013, at 03:51, Isuru Haththotuwa <isurulucky@xxxxxxxxx> wrote:

Hi, any idea on this? So does JGit only look at pre-defined set of config files as I observed?

This is the standard set of lookup paths for Git configuration files:


You may find that setting GIT_CONFIG to point to a file will modify the location for the per-repository lookup; I don't know whether it works in jgit or not as I haven't tested it.Â

AlexÂ

Looking at the source of FileBasedRepository, it doesn't seem that it will take into account the GIT_CONFIG environment variable:

https://eclipse.googlesource.com/jgit/jgit/+/master/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileRepository.java

If you're interested in filing a bug and/or providing a patch I'm sure this could be merged in for the future.

Alex



--
Thanks and Regards,
Isuru