From: Junio C Hamano Date: Thu, 06 Oct 2005 20:19:45 GMT Subject: Re: [PATCH] Write .editmsg in GIT_DIR to avoid being in git-status. Message-ID: <7vpsqi8kke.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <8aa486160510060630m2afb18ffx@mail.gmail.com> Santi Bejar writes: >> If a working tree is read-only, I wonder what you are committing. > > I keep my /etc modifications in git, and I want to commit as a > user not as root. OK. Your /etc/.git is writable by you but /etc is not. Although I personally would do it a bit differently (my /etc sources would live in a different area which is a source tree and 'make install' as root would install the latest to /etc; no need for anything user writable under /etc, including /etc/.git/), I do not think your set-up is wrong -- we should support it. >> ... If the working tree root level is not writable for you, >> is it valid/reasonable to assume that $GIT_DIR is? I changed my mind about this. $GIT_DIR by definition should be writable by you since we are talking about committing -- I think moving them to $GIT_DIR/ is a good change.