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);
}