Re: How to setup a public reposistory?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andreas Ericsson <ae@...>
Cc: <git@...>
Date: Friday, November 21, 2008 - 4:04 pm

I followed the steps outlined by the links below. But, I am still not able to setup the public repository. I got, fatal: unable to connect a socket (Connection refused). What I did wrong? Please help.

http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#setting-up-a-public-r...
http://dtcsupport.gplhost.com/Git/Public-Repo-Howto

0. Prepare your name and email address
cat ~gyang/.gitconfig
[user]
        email = gyang@mycompany.com
        name = Gary Yang


1. Create an archive to send to the server

/home/gyang% git clone http://git.gplhost.com/dtc-xen.git

/home/gyang% git clone --bare dtc-xen dtc-xen.git

/home/gyang% touch dtc-xen.git/git-daemon-export-ok

/home/gyang% tar -cvzf dtc-xen.git.tar.gz dtc-xen.git


2. Install the archive on the web server

/pub/git% tar -xvzf /home/gyang/dtc-xen.git.tar.gz

/pub/git/dtc-xen.git% git --bare update-server-info

/pub/git/dtc-xen.git% mv hooks/post-update.sample hooks/post-update

/pub/git/dtc-xen.git% chmod +x hooks/post-update

/pub/git/dtc-xen.git% cat hooks/post-update
#!/bin/sh
#
# An example hook script to prepare a packed repository for use over
# dumb transports.
#
# To enable this hook, rename this file to "post-update".

exec git-update-server-info


3. Configure and start git daemon at the web server

/pub/git/dtc-xen.git% grep 9418 /etc/services
git             9418/tcp                        # Git Version Control System


/pub/git/dtc-xen.git% sudo git daemon --verbose --inetd --export-all /pub/git &


4. At my local machine. I did

/home/gyang% git clone git://git.mycompany.com/pub/git/dtc-xen.git test-git

Initialized empty Git repository in //home/gyang/test-git/.git/
git.mycompany.com[0: 10.66.4.168]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)


ps -efww | grep git
root      9626 22321  0 11:31 pts/1    00:00:00 git-daemon --verbose --inetd --export-all /pub/git





--- On Fri, 11/21/08, Andreas Ericsson <ae@op5.se> wrote:



      
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Cannot git pull using http from my git.mycompany.com, Andreas Ericsson, (Fri Nov 21, 5:54 am)
Re: How to setup a public reposistory?, Gary Yang, (Fri Nov 21, 4:04 pm)
Re: How to setup a public reposistory?, Andreas Ericsson, (Sat Nov 22, 7:12 am)
Re: Cannot git pull using http from my git.mycompany.com, David Symonds, (Fri Nov 21, 4:43 am)