Skip to content
Snippets Groups Projects
Commit af881048 authored by Stanley Goldman's avatar Stanley Goldman Committed by GitHub
Browse files

Merge pull request #176 from github-for-unity/fixes/mac-publish-correct-url

Fix to set correct clone url based on environment os
parents acd655fb cac6b235
No related branches found
Tags v0.26.1-alpha
No related merge requests found
......@@ -222,7 +222,9 @@ namespace GitHub.Unity
return;
}
GitClient.RemoteAdd("origin", repository.CloneUrl)
var repositoryCloneUrl = Environment.IsWindows ? repository.CloneUrl : repository.SshUrl;
GitClient.RemoteAdd("origin", repositoryCloneUrl)
.Then(GitClient.Push("origin", Repository.CurrentBranch.Value.Name))
.ThenInUI(Parent.Finish)
.Start();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment