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

Commit

Permalink
Fixing publish from a mac
Browse files Browse the repository at this point in the history
  • Loading branch information
StanleyGoldman committed Aug 8, 2017
1 parent acd655f commit cac6b23
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 cac6b23

Please sign in to comment.