Add caveat that the minimum expansion of RE must be a valid ref

Change-Id: I088a91f128a8dc628f9c0e752a122bfee8006420
This commit is contained in:
Doug Claar
2016-03-18 14:43:28 -07:00
committed by David Ostrovsky
parent 72c5a61d69
commit e852eb3c53

View File

@@ -222,7 +222,10 @@ is a wildcard matching any character, but may be escaped as `\.`.
The link:http://www.brics.dk/automaton/[dk.brics.automaton library]
is used for evaluation of regular expression access control
rules. See the library documentation for details on this
particular regular expression flavor.
particular regular expression flavor. One quirk is that the
shortest possible pattern expansion must be a valid ref name:
thus `^refs/heads/.*/name` will fail because `refs/heads//name`
is not a valid reference, but `^refs/heads/.+/name` will work.
References can have the current user name automatically included,
creating dynamic access controls that change to match the currently