Re: git-daemon serving repos with repo.git/git-daemon-export-ok
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jan 3, 2011, 23:55 UTC
- Message-ID
- <20110103235501.GA32262@burratino>
- In-Reply-To
- <4D225DFA.50805@ecosensory.com>
John Griessen wrote:
> git version 1.7.2.3
Good.
> vking@mail:/etc/sv$ sv stat git-daemon > fail: git-daemon: unable to change to service directory: file does not exist
Ah, you switched to running git daemon directly.
Show 5 quoted lines
> I can push to these repos with gitosis, and the permissions are: > > vking@mail:/srv/gitosis/repositories$ ll > total 16 > drwxr-xr-x 7 gitosis gitosis 4096 Dec 30 12:32 extrudator.data.git
So the gitdaemon user (used by git-daemon-run) wouldn't be able to access them.
Show 5 quoted lines
> vking@mail:/etc/sv$ cat strace.out
> execve("/usr/lib/git-core/git-daemon",
> ["/usr/lib/git-core/git-daemon", "--verbose", "--strict-paths",
> "--user=git", "--group=gitosis", "/srv/gitosis/repositories"], [/*
> 10 vars */]) = 0In this case simple --verbose output would probably be more useful. (That's what cat-ing /var/log/git-daemon/current would have given if git-daemon-run were still installed.)
Thanks for the strace. I should have mentioned that strace -f can help by following child processes, though that doesn't seem to be an issue here. It looks like another git-daemon process is running at the same time? (One can check with "netstat -t -a".)