Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitolite: print message after git clone finished

Tags:

git

gitolite

I would like to create a message that pops up whenever someone clones a git repository using gitolite. I want to remind them to clone the hooks repo as well and to activate the contained hooks. How can I do that?

like image 766
mattmilten Avatar asked Jul 13 '11 15:07

mattmilten


2 Answers

I realized that this feature is just not possible. It's not allowed to run any unauthorized code from the server on the client - even if it's just a printed message.

like image 97
mattmilten Avatar answered Oct 15 '22 17:10

mattmilten


The post-checkout hook is also run after git clone. Could be you could install a post-checkout hook on your gitolite-managed repos to emit a string of instruction. Whatever the hook says should get echoed to the user.

The speculation to fact quotient in the above paragraph is probably about .6 or higher, so YMMV wildly.

like image 30
Dan Ray Avatar answered Oct 15 '22 17:10

Dan Ray