{"thread":{"id":"11815","subject":"Problem with post-receive hook","startedAt":"2008-02-01T19:01:11Z","lastAt":"2008-02-01T19:01:11Z","messageCount":1,"participants":["Bill Lear"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"67039","messageId":"18339.27767.633833.374795@lisa.zopyra.com","threadId":"11815","inReplyTo":null,"subject":"Problem with post-receive hook","fromName":"Bill Lear","fromEmail":"rael@zopyra.com","sentAt":"2008-02-01T19:01:11Z","receivedAt":"2008-02-01T19:01:11Z","isPatch":false,"sender":{"key":"rael@zopyra.com","avatar":"https://gravatar.com/avatar/c4f2d2790ca3828d3b4e7dfebabf61d2fe94fd82fa49cdac2a5295dd2d46a874?d=mp&s=160"},"body":"I am having trouble getting the contributed post-receive hook to work,\nwhich worked just fine the last time I tried it.  I am using the\nlatest code from the git repo directly and have also tried the 1.5.3.8\nversion.\n\nI am running the git-daemon through xinetd, and it is configured\nlike so:\n\n% cat /etc/xinetd.d/git-daemon\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            = rael\n        server          = /opt/git/bin/git-daemon\n        server_args     = --enable=receive-pack --verbose --syslog --inetd --export-all --base-path=/repos/git\n        log_on_failure  += USERID\n}\n\nI have a test repo in /repos/git/fun, and I can clone it, and push\nto it successfully.  I have configured the config file in /repos/git/fun\nlike so:\n\n% cat /repos/git/fun/config\n[core]\n        repositoryformatversion = 0\n        filemode = true\n        bare = true\n        legacyheaders = false\n        logallrefupdates = true\n[repack]\n        usedeltabaseoffset = true\n[hooks]\n        mailinglist = rael@zopyra.com\n\nand have ensured that the hook /repos/git/config/fun/hooks/post-receive\nis executable.\n\nI have run it from the command line and it has printed out what I\nexpected it to, but for some reason when the git daemon gets a pack,\nit does not seem to execute the hook.  I have looked through the git\ndaemon code in daemon.c, and the receive-pack code, and I see nothing\nobvious that has changed since the last time I looked at it.\n\nI have verified that the git daemon works to upload the packs (I push\nchanges, go somewhere else, clone and the changes are there; also, it\nshows the upload in the syslog file /var/log/messages), and I'm just\nat a loss.  The message file says, for example:\n\nFeb  1 11:25:47 zopyra git-daemon: [31240] Connection from 192.168.10.23:41527\nFeb  1 11:25:47 zopyra git-daemon: [31240] Extended attributes (12 bytes) exist <host=zopyra>\nFeb  1 11:25:47 zopyra git-daemon: [31240] Request upload-pack for '/fun'\nFeb  1 11:25:47 zopyra xinetd[2382]: EXIT: git status=0 pid=31240 duration=0(sec)\n\nso, nothing seems amiss here.\n\nHave I missed something really stupid?\n\n\nBill\n"}]}