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

Re: use GIT_DIR instead of /var/tmp

From: Jon Nelson <hidden>
Date: 2016-06-15 22:42:15

On Thu, 5 Jan 2006, Linus Torvalds wrote:

On Thu, 5 Jan 2006, Alex Riesen wrote:
quoted
Not every system (will not one microsoft windows system) have /var/tmp,
whereas using GIT_DIR for random temporary files is more or less established.
Note that in this case it might be appropriate, but in general you should 
be careful. You may want to access a git directory without actually having 
write permissions to it. 

Of course, for "git reset" that's not an issue (since it needs write 
permissions anyway), but just in general.. git programs mostly use pipes 
to communicate, and temporary files are pretty rare, so we hopefully don't 
have that issue much, but let's make sure that things that just look at a 
repository can work even with a read-only repo.
Do you still need write access to $GIT_DIR if $GIT_INDEX_FILE is set to 
some place outside of $GIT_DIR?

--
Jon Nelson [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help