Re: git-config: replaces ~/.gitconfig symlink with real file

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: git-config: replaces ~/.gitconfig symlink with real file

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2016-06-15 22:43:22

"Bradford Smith" [off-list ref] wrote:
However, when I tried running 'git-config --global color.diff auto'
today, it removed my symlink and replaced it with a real file.  This
left me briefly a bit confused when the changes I had made didn't show
up in ~/etc/gitconfig, but git-config reported them anyway.
Another problem I have with 'git config --global' is that it changes
the access permission bits of ~/.gitconfig. Since I use the same file
to store global StGIT configuration like SMTP username and password,
I'd like to make its access 0600 but it always goes back to 0644 after
'git config --global'.

Maybe fixing the symlink case would solve my problem as well.

Thanks.

-- 
Catalin

Re: git-config: replaces ~/.gitconfig symlink with real file

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:43:22

Hi,

On Tue, 17 Jul 2007, Catalin Marinas wrote:
"Bradford Smith" [off-list ref] wrote:
quoted
However, when I tried running 'git-config --global color.diff auto'
today, it removed my symlink and replaced it with a real file.  This
left me briefly a bit confused when the changes I had made didn't show
up in ~/etc/gitconfig, but git-config reported them anyway.
Another problem I have with 'git config --global' is that it changes
the access permission bits of ~/.gitconfig. Since I use the same file
to store global StGIT configuration like SMTP username and password,
I'd like to make its access 0600 but it always goes back to 0644 after
'git config --global'.

Maybe fixing the symlink case would solve my problem as well.
More likely not.  The way to solve it would be to follow the link if the 
target path is one.  As such, the _file_ would be rewritten.

So your problem is unrelated, and would need a separate fix.

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help