Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to set the LOCAL_CODE variable in my .gitolite.rc. I tried to set $LOCAL_CODE = "/home/gitolite/.gitolite/local-code"; and the setting from this.

But gl-query-rc LOCAL_CODE is empty.

The Link above says that some packages can handle this variable different. How to set it in Ubuntu 12.04?

share|improve this question

apt-get installed v2 of gitolite and it seems that $LOCAL_CODE was introduced with v3. You can either put your hooks into hooks/common of use v3 from their git. I choosed the second solution.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.