fix duplication of refnames prefixed with "_"s

This commit is contained in:
Philippe Miossec
2017-06-04 23:13:02 +02:00
parent 39ccafb065
commit 62d5960e2e
-4
View File
@@ -527,10 +527,6 @@ namespace Sep.Git.Tfs.Core
{
if (!Reference.IsValidName(ShortToLocalName(gitBranchName)))
throw new GitTfsException("The name specified for the new git branch is not allowed. Choose another one!");
while (IsRefNameUsed(gitBranchName))
{
gitBranchName = "_" + gitBranchName;
}
return gitBranchName;
}