Will the branch permission pattern foo/bar** match foo/barbat or does ** only match strictly separated path elements (e.g. foo/bar/bat)? https://confluence.atlassian.com/display/STASH/Branch+permission+patterns isn't totally clear about that.
Thank you for your question.
Based on the documentation you have mentioned and in your inquire, it seems you are interested on knowing how to refer any branch that starts with foo/bar (i.e.: foo/bar, foo/barbat, foo/bare). If so, you could use the following pattern:
Matches any branch or tag named PROJECT-*, even in a name space.
e.g. refs/heads/PROJECT-1234, refs/heads/stable/PROJECT-new or refs/tags/PROJECT-1.1
If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.
Thank you for your understanding.
Rafael P. Sperafico
Stash is using Spring's
AntPathMatcher internally which is based on Ant patterns. From Ant's documentation:
/test/** matches all files/directories under
/test/, such as
/test/foo/bar/xyz.html, but not
which means foo/bar** matches foo/barbat.
Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs