Re: Unable to create temporary file '/var/git/tmv3-target-overlay.git/shallow_Un8ZOR': Permission denied
- From
- Joakim Tjernlund <joakim.tjernlund@transmode.se>
- Date
- Sep 21, 2015, 17:08 UTC
- Message-ID
- <1442855328.29498.30.camel@transmode.se>
- In-Reply-To
- <xmqqpp1bbtvz.fsf@gitster.mtv.corp.google.com>
On Mon, 2015-09-21 at 09:48 -0700, Junio C Hamano wrote:
Show 12 quoted lines
> Duy Nguyen <pclouds@gmail.com> writes: > > > Is it really necessary to remove write access in $GIT_DIR? Do we (git > > devs) have some guidelines about things in $GIT_DIR? > > Those who are allowed to "git push" into it should be able to write > there. It is a different matter that "git" program itself may make > a policy decision to disallow some operations that the filesystem > bits alone would have allowed (e.g. you can arrange the "pusher" to > only come over the wire via "receive-pack" and "receive-pack" may > deliberately lack support for writing into $GIT_DIR/config). >
I view $GIT_DIR similar to "/" and "/tmp". Normally one does not let normal users write to "/" as you want to keep this level clean. It is not obvious to everybody what files are important under $GIT_DIR when mixed with tmp files etc. $GIT_DIR/tmp would solve this nicely.
Jocke