git - gitolite add repo specific post-receive hook -
i trying add post-receive hook specific repositories using doc: http://gitolite.com/gitolite/cookbook.html
in gitolite-admin repo added local/hooks/repo-specific/deploy
(which of trys touch file) , added line option hook.post-receive = deploy
in conf/gitolite.conf
.
on server looked .gitolite.rc didn't contain %rc block. tried add 1 it:
%rc = ( enable => ['repo-specific-hooks'], local_code => "$rc{gl_admin_base}/local" );
after pushing changes repo hook receive error:
remote: ***** aborting ***** remote: can't make head or tail of 'option hook.post-receive = deploy'
this first time using gitolite, might missing obvious. ideas?
you using gitolite v2.x. repo-specific hooks supported since v3.6.
are using debian? then, installed gitolite
package apt. not want. version 3 (at least debian, ubuntu , like) installed package gitolite3
.
this because v3 not strictly compatible v2. if need upgrade gitolite, there tutorial @ http://gitolite.com/gitolite/migr.html.
Comments
Post a Comment