Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333216

Summary: System wide configuration file not recognized
Product: [Technology] JGit Reporter: Robin Rosenberg <robin.rosenberg>
Component: JGitAssignee: Robin Rosenberg <robin.rosenberg>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: caniszczyk, matthias.sohn
Version: 0.11Keywords: noteworthy
Target Milestone: 0.10.0   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 301775    

Description Robin Rosenberg CLA 2010-12-26 11:22:22 EST
JGit recognized the global configuration file, but not  $prefix/etc/gitconfig

How do we find out?

bash: which git
ksh; whence git
cmd: scan PATH for git

the cmd solution possibly works for all OS:es. However if git is not in the global path we may want a setting for it somewhere since e.g. cygwin often is not in PATH

Then look for ../etc/gitconfg

E.g.:
/usr/local/bin/git
/usr/local/etc/gitconfig
Comment 1 Robin Rosenberg CLA 2010-12-30 08:36:14 EST
Patch at http://egit.eclipse.org/r/#change,2177
Comment 2 Chris Aniszczyk CLA 2011-01-07 15:12:56 EST
Just need the EGit pieces for this.
Comment 3 Robin Rosenberg CLA 2011-01-07 16:33:47 EST
(In reply to comment #2)
> Just need the EGit pieces for this.

That was mentioned in a comment on the first patch. It is here:
http://egit.eclipse.org/r/#change,2178
Comment 4 Matthias Sohn CLA 2011-01-09 18:10:26 EST
egit change merged as 8c71700256e8ccb21ffa5e3c9e344745f8e33c50