Thread (8 messages) flat view 8 messages, 5 authors, 2016-06-15

Re: use GIT_DIR instead of /var/tmp

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

Hi,

On Fri, 6 Jan 2006, Alex Riesen wrote:
Jon Nelson, Thu, Jan 05, 2006 17:49:36 +0100:
quoted
Do you still need write access to $GIT_DIR if $GIT_INDEX_FILE is set to 
some place outside of $GIT_DIR?
yes, $GIT_DIR/refs/heads/ref-pointed-by-HEAD is updated by git-reset.
In a strict sense, this means write access to $GIT_DIR/refs/heads/. In a 
shared setup, I have repositories where all developers are allowed to 
write to that folder, but only the repo maintainer (yours truly) is 
allowed to write to $GIT_DIR (which effectively means: nobody can write 
an index).

Maybe the safe method would be to introduce $GIT_TMP_DIR, with "/tmp/" 
being the default?

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