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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With