Re: Challenge of setting up git server (repository). Please help!
- From
- Mike Galbraith <efault@gmx.de>
- Date
- Nov 21, 2008, 07:22 UTC
- Message-ID
- <1227252144.4879.90.camel@marge.simson.net>
- In-Reply-To
- <546971.60895.qm@web37907.mail.mud.yahoo.com>
On Thu, 2008-11-20 at 16:39 -0800, Gary Yang wrote:
Show 23 quoted lines
> I killed xinetd. Restarted with sudo xinetd -stayalive -pidfile /var/run/xinetd.pid.
>
> I back to my private box. I did
>
> git pull git://git.mycompany.com/pub/git/u-boot.git HEAD
>
> This command hangs for over half hour and is still hanging. Again, below is the content of /etc/xinetd.d/git-daemon. What I did wrong?
>
> cat /etc/xinetd.d/git-daemon
> # default: off
> # description: The git server offers access to git repositories
> service git
> {
> disable = no
> type = UNLISTED
> port = 9418
> socket_type = stream
> wait = no
> user = nobody
> server = /usr/local/libexec/git-core/git-daemon
> server_args = git-daemon --inetd --export-all --base-path=/pub/git
> log_on_failure += USERID
> }The way I set it up was to create a user 'git' who is my central repository owner/manager. All repositories live in ~git.
service git
{
socket_type = stream
protocol = tcp
wait = no
user = git
group = daemon
server = /usr/bin/git
server_args = daemon --inetd --export-all --user-path --reuseaddr --detach
type = UNLISTED
port = 9418
log_on_failure += USERID
}marge:..kernel/linux-2.6.28 # git remote -v master git://localhost/~git/linux-2.6
>From host homer, with a hole poked in marge's firewall, works fine.
-Mike