public static List<GitHead> GetRemoteHeads(string remote, bool tags, bool branches) { remote = FixPath(remote); var tree = GetTreeFromRemoteHeands(remote, tags, branches); return GetHeads(tree); }