internal RemoteUpdater(Repository repo, Remote remote) { Ensure.ArgumentNotNull(repo, "repo"); Ensure.ArgumentNotNull(remote, "remote"); fetchRefSpecs = new UpdatingCollection <string>(GetFetchRefSpecs, SetFetchRefSpecs); pushRefSpecs = new UpdatingCollection <string>(GetPushRefSpecs, SetPushRefSpecs); remoteHandle = Proxy.git_remote_load(repo.Handle, remote.Name, true); }
internal RemoteUpdater(Repository repo, string remote) { Ensure.ArgumentNotNull(repo, "repo"); Ensure.ArgumentNotNull(remote, "remote"); this.repo = repo; this.remoteName = remote; fetchRefSpecs = new UpdatingCollection <string>(GetFetchRefSpecs, SetFetchRefSpecs); pushRefSpecs = new UpdatingCollection <string>(GetPushRefSpecs, SetPushRefSpecs); }