On Sat, 2015-09-19 at 09:21 +0700, Duy Nguyen wrote: > On Thu, Sep 17, 2015 at 11:54 PM, Joakim Tjernlund > <joakim.tjernlund@xxxxxxxxxxxx> wrote: > > On Thu, 2015-09-17 at 20:18 +0700, Duy Nguyen wrote: > > > On Mon, Sep 14, 2015 at 10:37 PM, Joakim Tjernlund > > > <joakim.tjernlund@xxxxxxxxxxxx> wrote: > > > > On Mon, 2015-08-31 at 16:56 +0700, Duy Nguyen wrote: > > > > > On Fri, Aug 21, 2015 at 6:36 PM, Joakim Tjernlund > > > > > <joakim.tjernlund@xxxxxxxxxxxx> wrote: > > > > > > I cannot push: > > > > > > # > git push origin > > > > > > Login for jocke@xxxxxxxxxxxxxxxx > > > > > > Password: > > > > > > Counting objects: 7, done. > > > > > > Delta compression using up to 4 threads. > > > > > > Compressing objects: 100% (7/7), done. > > > > > > Writing objects: 100% (7/7), 13.73 KiB | 0 bytes/s, done. > > > > > > Total 7 (delta 4), reused 0 (delta 0) > > > > > > fatal: Unable to create temporary file '/var/git/tmv3-target-overlay.git/shallow_Un8ZOR': > > > > > > Permission > > > > > > denied > > I'm about to do it, but now I'm not sure if I should move > shallow_XXXXXX out of $GIT_DIR. It will not be the only command that > may write to $GIT_DIR. "git gc --auto" (which can be triggered at the > server side at push time) can write $GIT_DIR/gc.pid (and soon, > gc.log). Even if you disable gc --auto and run it periodically (with > cron or something), it will write gc.pid. > > Is it really necessary to remove write access in $GIT_DIR? Do we (git > devs) have some guidelines about things in $GIT_DIR? It feels a lot cleaner to not let everybody create stuff in $GIT_DIR we have: # > ls -l total 24 dr-xr-sr-x 6 apache tm-3000 123 Jun 10 15:30 ./ drwxr-xr-x 36 root root 4096 Jun 25 11:11 ../ -r--r--r-- 1 root tm-3000 263 Jun 10 15:28 config -r--r--r-- 1 apache tm-3000 73 Jun 10 15:28 description -rw-r--r-- 1 root tm-3000 0 Jun 10 15:30 git-daemon-export-ok -r--r--r-- 1 apache tm-3000 23 Jun 10 15:28 HEAD drwxr-sr-x 2 root tm-3000 4096 Jun 10 15:28 hooks/ drwxrwsr-x 2 apache tm-3000 20 Jun 10 15:28 info/ drwxrwsr-x 157 apache tm-3000 4096 Jul 14 15:06 objects/ drwxrwsr-x 4 apache tm-3000 29 Jun 10 15:28 refs/ Why mess this up with tmp files? Would be cleaner to have a specific tmp dir in $GIT_DIR for that. Jocke-- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html