Re: git-config: replaces ~/.gitconfig symlink with real file
- From
Matthieu Moy <matthieu.moy@imag.fr>
- Date
- Jul 17, 2007, 14:27 UTC
- Message-ID
- <vpqbqebt8ak.fsf@bauges.imag.fr>
- In-Reply-To
- <Pine.LNX.4.64.0707170834040.14781@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 9 quoted lines
> Hi, > > On Mon, 16 Jul 2007, Bradford Smith wrote: > >> So, I guess I need to add a GIT_CONFIG_HOME environment variable. If I >> get that done, I'll send a patch to the list including doc updates. > > Alternatively, you could actually not ignore my hint at readlink(2) and > have a proper fix, instead of playing games with environment variables.
I second that.
Using an environment variable means having a configuration which is about git in my shell's config file, and that's a source of a lot of troubles. Murphy's law implies that one day, the environment variable won't be set properly (because you changed your shell, because you launch git from something which isn't a shell, because you logged-in in a way that didn't read the config file in which the variable was set, ...).
I can do with it, like many other software require an environment variable, but I find the symlink trick much more robust.
-- Matthieu