A more idiomatic way to write this line is

    if (allRemotes.Any(r => r.TfsRepositoryPath.ToLower() == tfsBranchPath.ToLower()))

The same predicate is used on line 81, which makes me think that this whole section could be cleaned up a little.