Re: git-config: replaces ~/.gitconfig symlink with real file
From: Matthieu Moy <hidden>
Date: 2016-06-15 22:43:22
Johannes Schindelin [off-list ref] writes:
Hi, On Mon, 16 Jul 2007, Bradford Smith wrote:quoted
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