Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

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/.+)

share|improve this answer
    
Solution was right for Gitolite 3 - unfortunately version2 doesn't support equal options. –  pagid Oct 26 '12 at 22:53
add comment

Your Answer

 
discard

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.