From: Junio C Hamano Date: Tue, 24 Apr 2007 06:17:01 GMT Subject: Re: [PATCH] Only use ETC_GITCONFIG=$(prefix)/etc/gitconfig ifeq ($(prefix),$(HOME)) Message-ID: <7v1wia9u02.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <7v8xci9uea.fsf@assigned-by-dhcp.cox.net> Junio C Hamano writes: > Josh Triplett writes: > >> ETC_GITCONFIG defaults to $(prefix)/etc/gitconfig, so if you just set >> prefix=/usr or prefix=/usr/local, you end up with a git that looks in >> /usr/etc/gitconfig or /usr/local/etc/gitconfig. That seems rather suboptimal. >> >> Use ifeq in the Makefile to set ETC_GITCONFIG=/etc/gitconfig unless the prefix >> points to $HOME . > > I personally have four installations of git under $HOME by > setting prefix to $HOME/git-{maint,master,next,pu}. I would > rather not see this to break, as I suspect there are other > people who depend on this behaviour. Also what happens to people who use "prefix=/usr/local"?