Exemple #1
0
        public static void UpdateRemote(Remote remote, RemoteData remoteData)
        {
            Verify.Argument.IsNotNull(remote, "remote");
            Verify.Argument.IsNotNull(remoteData, "remoteData");

            remote.SetPushUrl(remoteData.PushUrl);
            remote.SetFetchUrl(remoteData.FetchUrl);
        }
Exemple #2
0
        public static Remote CreateRemote(Repository repository, RemoteData remoteData)
        {
            Verify.Argument.IsNotNull(repository, "repository");
            Verify.Argument.IsNotNull(remoteData, "remoteData");

            return new Remote(repository, remoteData.Name, remoteData.FetchUrl, remoteData.PushUrl);
        }