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

Commit cac6b23

Browse files
Fixing publish from a mac
1 parent acd655f commit cac6b23

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)