static IEnumerable <DirectReference> GetRemoteTipsForAnonymousUser(Repository repo, Remote remote) { return(repo.Network.ListReferences(remote).Select(r => r.ResolveToDirectReference())); }
public static void Fetch(AuthenticationInfo authentication, Remote remote, Repository repo) { Logger.WriteInfo(string.Format("Fetching from remote '{0}' using the following refspecs: {1}.", remote.Name, string.Join(", ", remote.FetchRefSpecs.Select(r => r.Specification)))); Commands.Fetch(repo, remote.Name, new string[0], authentication.ToFetchOptions(), null); }
static IEnumerable <DirectReference> GetRemoteTipsUsingUsernamePasswordCredentials(Repository repo, Remote remote, string username, string password) { return(repo.Network.ListReferences(remote, (url, fromUrl, types) => new UsernamePasswordCredentials { Username = username, Password = password }).Select(r => r.ResolveToDirectReference())); }
static IEnumerable <DirectReference> GetRemoteTipsForAnonymousUser(Repository repo, Remote remote) { return(repo.Network.ListReferences(remote)); }