git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Only use ETC_GITCONFIG=$(prefix)/etc/gitconfig ifeq ($(prefix),$(HOME))

From
Junio C Hamano <junkio@cox.net>
Date
Apr 24, 2007, 05:59 UTC
Message-ID
<7vlkgi9utk.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<462D9938.8020206@freedesktop.org>
Josh Triplett <josh@freedesktop.org> writes:
Show 15 quoted lines
> Junio C Hamano wrote:
>> Is this really necessary?
>> 
>> I personally think distro people (or anybody who configures git
>> for system-wide deployment for that matter) already has Makefile
>> wrapper (a la debian/rules) to take care of this and other
>> issues.
>
> So did I.  Then I noticed (while stracing git to diagnose the issue with
> git-add searching the whole working copy for .gitignore files) that the
> Debian-packaged git looked for /usr/etc/gitconfig.  See
> <http://bugs.debian.org/420675>.  Apparently few enough people use
> /etc/gitconfig that nobody noticed and reported that it didn't work. :)
>
> Why not make the defaults more resistant to broken configuration?
Hmm.

It's tempting to leave this as is to gauge which distribution has more competent package maintainer and which ones have sloppy ones ;-).

Sympathetic, but still not entirely convinced.
Previous: Josh TriplettNext: Josh Triplett
Message 4 of 11 in “Only use ETC_GITCONFIG=$(prefix)/etc/gitconfig ifeq ($(prefix),$(HOME))”
  1. Only use ETC_GITCONFIG=$(prefix)/etc/gitconfig ifeq ($(prefix),$(HOME))Josh Triplett, Apr 24, 2007
  2. Junio C HamanoApr 24, 2007
  3. Josh TriplettApr 24, 2007
  4. Junio C HamanoApr 24, 2007
  5. Josh TriplettApr 24, 2007
  6. Create a sysconfdir variable, and use it for ETC_GITCONFIGJosh Triplett, Apr 24, 2007
  7. Junio C HamanoApr 24, 2007
  8. Junio C HamanoApr 24, 2007
  9. Junio C HamanoApr 24, 2007
  10. Sergio CallegariApr 24, 2007
  11. Shawn O. PearceApr 24, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.