mattmilten
mattmilten

Reputation: 6716

Gitolite: print message after git clone finished

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?

Upvotes: 7

Views: 2420

Answers (2)

mattmilten
mattmilten

Reputation: 6716

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.

Upvotes: 3

Dan Ray
Dan Ray

Reputation: 21903

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.

Upvotes: 1

Related Questions