* fatal: did you run git update-server-info on the server? mv post-update.sample post-update
@ 2008-11-19 18:59 Gary Yang
2008-11-20 11:05 ` Johannes Schindelin
0 siblings, 1 reply; 3+ messages in thread
From: Gary Yang @ 2008-11-19 18:59 UTC (permalink / raw)
To: git
The doc, http://www.kernel.org/pub/software/scm/git/docs/gitcore-tutorial.html, at the the section, "Working with Others" says that
mv post-update.sample post-update under the $GIT_DIR/hooks directory for the public repository. I did that. The file permission is executable.
ls -alF /pub/git/u-boot.git/hooks/post-update
-rwxr-xr-x 1 garyyang6 engr 189 Nov 18 15:54 /pub/git/u-boot.git/hooks/post-update*
But, I got error, "did you run git update-server-info on the server" when I tried to "git pull". Any idea why I got this error?
I did not run post-update at public repository manually. Do I need to run it for the very first time?
At my private repository, I did:
git pull http://git01.my.com /pub/git/u-boot.git HEAD
fatal: http://git01.my.com/info/refs not found: did you run git update-server-info on the server?
Thank you,
Gary
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: fatal: did you run git update-server-info on the server? mv post-update.sample post-update
2008-11-19 18:59 fatal: did you run git update-server-info on the server? mv post-update.sample post-update Gary Yang
@ 2008-11-20 11:05 ` Johannes Schindelin
2008-11-20 21:25 ` Gary Yang
0 siblings, 1 reply; 3+ messages in thread
From: Johannes Schindelin @ 2008-11-20 11:05 UTC (permalink / raw)
To: Gary Yang; +Cc: git
Hi,
On Wed, 19 Nov 2008, Gary Yang wrote:
> I did not run post-update at public repository manually. Do I need to
> run it for the very first time?
You need to run it when you installed the hook _after_ seeing the message
"did you run...".
Ciao,
Dscho
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: fatal: did you run git update-server-info on the server? mv post-update.sample post-update
2008-11-20 11:05 ` Johannes Schindelin
@ 2008-11-20 21:25 ` Gary Yang
0 siblings, 0 replies; 3+ messages in thread
From: Gary Yang @ 2008-11-20 21:25 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: git
I ran the command, git update-server-info at the public repository machine. But, I still got the same error.
git pull http://git.mycompany.com/pub/git/u-boot.git HEAD
fatal: http://git.mycompany.com/pub/git/u-boot.git/info/refs not found: did you run git update-server-info on the server?
The file /pub/git/u-boot.git/info/refs do exist.
cat /pub/git/u-boot.git/info/refs
87ee4576c4c31b7046fe2bbbdf309eaba5c3f346 refs/heads/master
My question:
Is the contet of /pub/git/u-boot.git/hooks/post-update correct? Should I change "exec git-update-server-info" to "exec git update-server-info"?
cat /pub/git/u-boot.git/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
I tried and changed "exec git-update-server-info" to "exec git update-server-info" in /pub/git/u-boot.git/hooks/post-update. But, I still got same error.
git pull http://git.mycompany.com/pub/git/u-boot.git HEAD
fatal: http://git.mycompany.com/pub/git/u-boot.git/info/refs not found: did you run git update-server-info on the server?
Which one is correct? "exec git-update-server-info" or "exec git update-server-info"? Eventhogh none of them working.
Below are my settings:
grep 9418 /etc/services
git 9418/tcp # Git Version Control System
grep git /etc/inetd.conf
git stream tcp nowait nobody /usr/local/libexec/git-core/git-daemon git-daemon --inetd --export-all /pub/git
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 = --inetd --export-all --base-path=/pub/git
log_on_failure += USERID
}
I am running git at Linux box:
uname -a
Linux svdclw004 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST 2007 x86_64 GNU/Linux
Are there anything wrong? Please let me know.
--- On Thu, 11/20/08, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
> Subject: Re: fatal: did you run git update-server-info on the server? mv post-update.sample post-update
> To: "Gary Yang" <garyyang6@yahoo.com>
> Cc: git@vger.kernel.org
> Date: Thursday, November 20, 2008, 3:05 AM
> Hi,
>
> On Wed, 19 Nov 2008, Gary Yang wrote:
>
> > I did not run post-update at public repository
> manually. Do I need to
> > run it for the very first time?
>
> You need to run it when you installed the hook _after_
> seeing the message
> "did you run...".
>
> Ciao,
> Dscho
> --
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-11-20 21:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-19 18:59 fatal: did you run git update-server-info on the server? mv post-update.sample post-update Gary Yang
2008-11-20 11:05 ` Johannes Schindelin
2008-11-20 21:25 ` Gary Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox