Sep.Git.Tfs.Core.GitTfsRemote.ExtractGitBranchNameFromTfsRepositoryPath C# (CSharp) Method

ExtractGitBranchNameFromTfsRepositoryPath() private method

private ExtractGitBranchNameFromTfsRepositoryPath ( string tfsRepositoryPath ) : string
tfsRepositoryPath string
return string
        private string ExtractGitBranchNameFromTfsRepositoryPath(string tfsRepositoryPath)
        {
            var includeTeamProjectName = !Repository.IsInSameTeamProjectAsDefaultRepository(tfsRepositoryPath);
            var gitBranchName = tfsRepositoryPath.ToGitBranchNameFromTfsRepositoryPath(includeTeamProjectName);
            gitBranchName = Repository.AssertValidBranchName(gitBranchName);
            Trace.TraceInformation("The name of the local branch will be : " + gitBranchName);
            return gitBranchName;
        }