{"action":"closed","issue":{"url":"https://api.github.com/repos/tv42/gitosis/issues/2","labels_url":"https://api.github.com/repos/tv42/gitosis/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/tv42/gitosis/issues/2/comments","events_url":"https://api.github.com/repos/tv42/gitosis/issues/2/events","html_url":"https://github.com/tv42/gitosis/issues/2","id":9441852,"number":2,"title":"Fix for gitosis in ubuntu 12.04 (which didn't work before the fix)","user":{"login":"jmcabo","id":1451236,"avatar_url":"https://avatars.githubusercontent.com/u/1451236?v=3","gravatar_id":"","url":"https://api.github.com/users/jmcabo","html_url":"https://github.com/jmcabo","followers_url":"https://api.github.com/users/jmcabo/followers","following_url":"https://api.github.com/users/jmcabo/following{/other_user}","gists_url":"https://api.github.com/users/jmcabo/gists{/gist_id}","starred_url":"https://api.github.com/users/jmcabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmcabo/subscriptions","organizations_url":"https://api.github.com/users/jmcabo/orgs","repos_url":"https://api.github.com/users/jmcabo/repos","events_url":"https://api.github.com/users/jmcabo/events{/privacy}","received_events_url":"https://api.github.com/users/jmcabo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2012-12-20T18:02:11Z","updated_at":"2015-01-22T18:53:43Z","closed_at":"2015-01-22T18:53:43Z","body":"Hello! \r\nIn Ubuntu 12.04 the hooks didn't work. Pushing to the gitosis-admin repo didn't\r\nrefresh the config file or the ssh keys.\r\n\r\nThere were two problems with the post-update hook for the gitosis-admin repo.\r\n1) It wasn't executable, and needed chmod +x\r\n\r\n             chmod +x  <gitosis_home>/repositories/gitosis-admin.git/hooks/post-update\r\n\r\n2) It used old git commands, which are found now in '/usr/lib/git-core' as symlinks.\r\nThe fix for that is to add: \r\n\r\n             PATH=$PATH:/usr/lib/git-core\r\n             export PATH\r\n\r\nto the first lines of the 'post-update' hook.\r\n\r\nAfter this, it works like a charm.\r\nPlease include the fix if you can, so that other people can use gitosis in ubuntu.\r\nThanks so much for gitosis!!!!\r\n\r\n"}}