{"thread":{"id":"16398","subject":"fatal: did you run git update-server-info on the server? mv post-update.sample post-update","startedAt":"2008-11-19T18:59:41Z","lastAt":"2008-11-20T21:25:19Z","messageCount":3,"participants":["Gary Yang","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"96181","messageId":"155056.88492.qm@web37905.mail.mud.yahoo.com","threadId":"16398","inReplyTo":null,"subject":"fatal: did you run git update-server-info on the server? mv post-update.sample post-update","fromName":"Gary Yang","fromEmail":"garyyang6@yahoo.com","sentAt":"2008-11-19T18:59:41Z","receivedAt":"2008-11-19T18:59:41Z","isPatch":false,"sender":{"key":"garyyang6@yahoo.com","avatar":null},"body":"The doc, http://www.kernel.org/pub/software/scm/git/docs/gitcore-tutorial.html, at the the section, \"Working with Others\" says that\nmv post-update.sample post-update under the $GIT_DIR/hooks directory for the public repository. I did that. The file permission is executable.\n\nls -alF /pub/git/u-boot.git/hooks/post-update\n-rwxr-xr-x  1 garyyang6 engr 189 Nov 18 15:54 /pub/git/u-boot.git/hooks/post-update*\n\nBut, 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?\n\nI did not run post-update at public repository manually. Do I need to run it for the very first time?\n\nAt my private repository, I did:\ngit pull http://git01.my.com /pub/git/u-boot.git HEAD\nfatal: http://git01.my.com/info/refs not found: did you run git update-server-info on the server?\n\nThank you,\n\nGary\n\n\n\n\n      \n"},{"id":"96216","messageId":"alpine.DEB.1.00.0811201204300.30769@pacific.mpi-cbg.de","threadId":"16398","inReplyTo":"155056.88492.qm@web37905.mail.mud.yahoo.com","subject":"Re: fatal: did you run git update-server-info on the server? mv post-update.sample post-update","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2008-11-20T11:05:03Z","receivedAt":"2008-11-20T11:05:03Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Wed, 19 Nov 2008, Gary Yang wrote:\n\n> I did not run post-update at public repository manually. Do I need to \n> run it for the very first time?\n\nYou need to run it when you installed the hook _after_ seeing the message \n\"did you run...\".\n\nCiao,\nDscho\n"},{"id":"96283","messageId":"694807.23593.qm@web37908.mail.mud.yahoo.com","threadId":"16398","inReplyTo":"alpine.DEB.1.00.0811201204300.30769@pacific.mpi-cbg.de","subject":"Re: fatal: did you run git update-server-info on the server? mv post-update.sample post-update","fromName":"Gary Yang","fromEmail":"garyyang6@yahoo.com","sentAt":"2008-11-20T21:25:19Z","receivedAt":"2008-11-20T21:25:19Z","isPatch":false,"sender":{"key":"garyyang6@yahoo.com","avatar":null},"body":"\nI ran the command, git update-server-info at the public repository machine. But, I still got the same error.\n\ngit pull http://git.mycompany.com/pub/git/u-boot.git HEAD\nfatal: http://git.mycompany.com/pub/git/u-boot.git/info/refs not found: did you run git update-server-info on the server?\n\nThe file /pub/git/u-boot.git/info/refs do exist.\n\ncat /pub/git/u-boot.git/info/refs\n87ee4576c4c31b7046fe2bbbdf309eaba5c3f346        refs/heads/master\n\nMy question:\n\nIs 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\"?\n\ncat /pub/git/u-boot.git/hooks/post-update\n#!/bin/sh\n#\n# An example hook script to prepare a packed repository for use over\n# dumb transports.\n#\n# To enable this hook, rename this file to \"post-update\".\nexec git-update-server-info\n\nI 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.\ngit pull http://git.mycompany.com/pub/git/u-boot.git HEAD\nfatal: http://git.mycompany.com/pub/git/u-boot.git/info/refs not found: did you run git update-server-info on the server?\n\nWhich one is correct? \"exec git-update-server-info\" or \"exec git update-server-info\"? Eventhogh none of them working.\n\nBelow are my settings:\n\ngrep 9418 /etc/services\ngit             9418/tcp                        # Git Version Control System\n\n\ngrep git /etc/inetd.conf\ngit     stream  tcp     nowait  nobody  /usr/local/libexec/git-core/git-daemon git-daemon --inetd --export-all /pub/git\n\n\ncat /etc/xinetd.d/git-daemon\n# default: off\n# description: The git server offers access to git repositories\nservice git\n{\n        disable = no\n        type            = UNLISTED\n        port            = 9418\n        socket_type     = stream\n        wait            = no\n        user            = nobody\n        server          = /usr/local/libexec/git-core/git-daemon\n        server_args     = --inetd --export-all --base-path=/pub/git\n        log_on_failure  += USERID\n}\n\n\nI am running git at Linux box:\nuname -a\nLinux svdclw004 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST 2007 x86_64 GNU/Linux\n\nAre there anything wrong? Please let me know.\n\n\n\n\n\n\n\n--- On Thu, 11/20/08, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n\n> From: Johannes Schindelin <Johannes.Schindelin@gmx.de>\n> Subject: Re: fatal: did you run git update-server-info on the server? mv post-update.sample post-update\n> To: \"Gary Yang\" <garyyang6@yahoo.com>\n> Cc: git@vger.kernel.org\n> Date: Thursday, November 20, 2008, 3:05 AM\n> Hi,\n> \n> On Wed, 19 Nov 2008, Gary Yang wrote:\n> \n> > I did not run post-update at public repository\n> manually. Do I need to \n> > run it for the very first time?\n> \n> You need to run it when you installed the hook _after_\n> seeing the message \n> \"did you run...\".\n> \n> Ciao,\n> Dscho\n> --\n> To unsubscribe from this list: send the line\n> \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at \n> http://vger.kernel.org/majordomo-info.html\n\n\n      \n"}]}