From cac6b235378440e4ad12297a5000ef4e173fe6d1 Mon Sep 17 00:00:00 2001 From: Stanley Goldman Date: Tue, 8 Aug 2017 18:50:05 -0400 Subject: [PATCH] Fixing publish from a mac --- .../Assets/Editor/GitHub.Unity/UI/PUblishView.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/PUblishView.cs b/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/PUblishView.cs index 42f53e7d6..6f02f68bc 100644 --- a/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/PUblishView.cs +++ b/src/UnityExtension/Assets/Editor/GitHub.Unity/UI/PUblishView.cs @@ -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();