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

Commit af88104

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
2 parents acd655f + cac6b23 commit af88104

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/PUblishView.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ public override void OnGUI()
222222
return;
223223
}
224224

225-
GitClient.RemoteAdd("origin", repository.CloneUrl)
225+
var repositoryCloneUrl = Environment.IsWindows ? repository.CloneUrl : repository.SshUrl;
226+
227+
GitClient.RemoteAdd("origin", repositoryCloneUrl)
226228
.Then(GitClient.Push("origin", Repository.CurrentBranch.Value.Name))
227229
.ThenInUI(Parent.Finish)
228230
.Start();

0 commit comments

Comments
 (0)