Thread (9 messages) flat view 9 messages, 4 authors, 2016-06-15

Re: [PATCH] Preserve cwd in setup_git_directory()

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

Hi,

On Fri, 25 Jul 2008, Geoff Russell wrote:
I was pretty surprised to find that my command line switch (--work-tree) 
was being stored in the config file, which ended up causing the problem.  
Duy thinks he can fix this, which is fine, but as a matter of principle, 
I'm not keen on command line switches being magically saved for me when 
I didn't ask for this to happen.
You were initializing a repository.  How on earth could you be surprised 
when _important_ things like work-tree git-dir or if it is bare are stored 
inside the freshly initialized repository?
The reason for using a command line switch is because I want to override 
default behaviour on this execution, if I wanted to change the default 
behaviour, then I'd set values in the config file.
No, you would not.  Because there is no config file yet.

Htrh,
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