cmcculloh/GitScripts — Issue #39: Protection lists need adapting for multiple remotes
Author: Smolations
Created: 2012-01-16 20:31:00+00:00
State: open

A user may wish to restrict the branch name "my-branch" only on one server, say "server1." The user should be able to specify the branch in the applicable file using the remote prefix thusly:

server1/my-branch

Currently the function __is_branch_protected returns 0 or 1 when grepping these files. It will need to be updated as grepping for 'my-branch' will return true if the above appears in the file. This may not be desired behavior. Adding a negative lookbehind for a slash may be the way to go for the search pattern. That way only exact matches will be returned.