Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333216 - System wide configuration file not recognized
Summary: System wide configuration file not recognized
Status: RESOLVED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 0.11   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: 0.10.0   Edit
Assignee: Robin Rosenberg CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks: 301775
  Show dependency tree
 
Reported: 2010-12-26 11:22 EST by Robin Rosenberg CLA
Modified: 2011-01-09 18:10 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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