예제 #1
0
 public ITask SetupRemote(string remote, string remoteUrl)
 {
     Guard.ArgumentNotNullOrWhiteSpace(remote, "remote");
     Guard.ArgumentNotNullOrWhiteSpace(remoteUrl, "remoteUrl");
     if (!CurrentRemote.HasValue || String.IsNullOrEmpty(CurrentRemote.Value.Name)) // there's no remote at all
     {
         return(repositoryManager.RemoteAdd(remote, remoteUrl));
     }
     else
     {
         return(repositoryManager.RemoteChange(remote, remoteUrl));
     }
 }