Sep.Git.Tfs.Commands.Ext.ToTfsTeamProjectRepositoryPath C# (CSharp) Method

ToTfsTeamProjectRepositoryPath() public static method

public static ToTfsTeamProjectRepositoryPath ( this tfsRepositoryPath ) : string
tfsRepositoryPath this
return string
        public static string ToTfsTeamProjectRepositoryPath(this string tfsRepositoryPath)
        {
            if (!tfsRepositoryPath.StartsWith("$/"))
            {
                return tfsRepositoryPath;
            }

            var index = tfsRepositoryPath.IndexOf('/', 2);
            return index == -1 ? tfsRepositoryPath : tfsRepositoryPath.Remove(index, tfsRepositoryPath.Length - index);
        }