1

with a gitolite configuration like this:

    repo    users/CREATOR/.+
            C       =   @defaultgroup
            RW+D    =   CREATOR
            RWD     =   @defaultgroup

the users of our server can easily create their own repositories just by cloning the "to be created" repo - e.g. with:

    git clone git@git.exmaple.com/users/foo.bar/new

This also shows up in our gitweb. But what's missing is some git configuration. I haven't been able to figure out how I could add working configuration to these newly created repositories (e.g. gitweb.url)?

Just for comparison - this is how a "normal" repo would look like:

    repo    normal/repo
            R       =   @all
            RW      =   @defaultgroup
            config  gitweb.url = git@git.exmaple.com/normal/repo.git
            config  receive.denyNonFastforwards = true

Any hints welcome, Cheers.

1

From the gitolite config page:

You can also use the special values %GL_REPO and %GL_CREATOR in the string.
The former is available to all repos, while the latter is only available to wild repos.

So this could work (not tested):

config  gitweb.url = git@git.exmaple.com/%GL_CREATOR/%GL_REPO
config  receive.denyNonFastforwards = true

(I suppose the last line would apply to all wild repos created under repo users/CREATOR/.+)

1
  • Solution was right for Gitolite 3 - unfortunately version2 doesn't support equal options.
    – pagid
    Oct 26 '12 at 22:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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