Default is success

At this point we need to change the NAME VREF. Instead of making a decision, it should merely print all the files that have been changed, each prefixed with VREF/NAME/.

Once that is done, it might then seem that the following rule is all we need:

RW+    VREF/NAME/.*\.odt$  =  @tech-writers

However, that's not quite the end of it.

There's a slight difference in how virtual refs are treated compared to real refs. With real refs, if no access rule matches the ref (and the user, and the actual type of write), the default is to reject the push.

However, virtual refs are designed as additional rules, adding checks that the normal Gitolite access rules cannot. Thus it makes more sense that if no VREFs match, it should be as if no additional ...

Get Gitolite Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.