From 62d5960e2ebf0cfa8fdc050a18a2fee7bf87337d Mon Sep 17 00:00:00 2001 From: Philippe Miossec Date: Sun, 4 Jun 2017 23:13:02 +0200 Subject: [PATCH] fix duplication of refnames prefixed with "_"s --- GitTfs/Core/GitRepository.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/GitTfs/Core/GitRepository.cs b/GitTfs/Core/GitRepository.cs index cc8ecf31..7b34f003 100644 --- a/GitTfs/Core/GitRepository.cs +++ b/GitTfs/Core/GitRepository.cs @@ -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; }