{"thread":{"id":"13555","subject":"Possible bug: hooks/post-update does not trigger","startedAt":"2008-05-17T15:28:16Z","lastAt":"2008-05-17T15:28:16Z","messageCount":1,"participants":["Teemu Likonen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"77193","messageId":"20080517152816.GA23308@mithlond.arda.local","threadId":"13555","inReplyTo":null,"subject":"Possible bug: hooks/post-update does not trigger","fromName":"Teemu Likonen","fromEmail":"tlikonen@iki.fi","sentAt":"2008-05-17T15:28:16Z","receivedAt":"2008-05-17T15:28:16Z","isPatch":false,"sender":{"key":"tlikonen@iki.fi","avatar":null},"body":"Sort of a problem is that hooks/post-update script is never triggered.\nI have the following setup:\n\nI work on a local repository and publish my changes by pushing them into\na bare repository which lies on the same filesystem. The actual\npublishing will then require \"git update-server-info\" and rsync'ing the\nbare repository to another host which in turn serves the repo via http.\n(No git installed on the remote side and probably never will.)\n\nI want to make this process automatical and I have actually done it\nalready with hooks/post-receive. It works fine. I'm just wondering why\nhooks/post-update doesn't work.\n\nThe default hooks/post-update contains the line\n\n  exec git-update-server-info\n\nSo the file is sort of advertised being the \"official\" way of running\ngit-update-server-info. The problem is that on my bare repository side\nthat file never gets executed (yes, execute bits are on). I tried to put\n\"echo\" and \"touch stampfile\" type commands there but nothing happens.\n\nWell, my problem was solved simply by using hooks/post-receive instead.\nI put the following lines there and it works great:\n\n  git update-server-info\n  rsync --recursive --delete . remotehost:public_html/repo.git\n\nStill I'd like to know if there is a bug in hooks/post-update triggering\nmechanism or did I do something wrong?\n"}]}