Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #176 from github-for-unity/fixes/mac-publish-corre…
Browse files Browse the repository at this point in the history
…ct-url

Fix to set correct clone url based on environment os
  • Loading branch information
StanleyGoldman authored Aug 8, 2017
2 parents acd655f + cac6b23 commit af88104
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ public override void OnGUI()
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();
Expand Down

0 comments on commit af88104

Please sign in to comment.