is there a way to activate a git hook remotely?
I am using some repos at http://www.assembla.com and I’d like to use them over http.
But cloning fails since I should run server-update-info on the remote repo. Is there a way to activate the post-update hook remotely via a git command and using the credentials I have for the repo?
Thanks.
No, it is not possible to activate hooks remotely ( using the access you have for the repo) since that would be a serious security concern ( unless you have access to the server, of course, which you will not, in this case)
With that said, the error you are seeing means you are doing something wrong and you don’t have to have the post-update hook for this to work ( since Assembla are using Smart HTTP anyway) –
1) Make sure you have a recent version of Git ( atleast 1.7)
2) Make sure you have cloned it the right way:
http://blog.assembla.com/assemblablog/tabid/12618/bid/70667/Git-over-HTTP.aspx