Operation service testing: invalid branch creating with refs/heads/ and other prefix in tests
I noticed that while testing UserDeleteBranch (for example) besides the simple branch name we test some cases like "branch with refs/heads/ prefix" where we test deletion of branches with names e.g. "refs/heads/branch" like here. To create this kind of branches git branch <name> command is used as here. But if we try to create branch with this prefix using execution of git branch refs/heads/mybranch we will get the result of git show-ref --head --dereference like 3b4a786d9d3e723707f27cd3bcc03dbb16e11add refs/heads/refs/heads/mybranch.
In this case prefixes are duplicated, which is most likely not a completely conceived test scenario.
Could you check please? Thanks!
Edited by Ivan Bukhtiyarov