Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use SSH url instead of Git URL
  • Loading branch information
guillep committed Aug 3, 2018
1 parent 01ab7fb commit 05e6d5a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
accessing
newRepository

| repository |
repository := super newRepository.
| newRepository |
newRepository := super newRepository.
UIManager default
informUser: 'Configuring Remotes...'
during: [ | githubRepository |
githubRepository := self getGitHubRepository.
githubRepository ifNil: [ ^ repository ].
githubRepository ifNil: [ ^ newRepository ].
(githubRepository at: #fork)
ifTrue: [ | parent remote |
parent := githubRepository at: #parent.
remote := IceGitRemote name: ((parent at: #owner) at: #login) url: (parent at: #'git_url').
repository addRemote: remote.
remote := IceGitRemote name: ((parent at: #owner) at: #login) url: (parent at: #'ssh_url').
newRepository addRemote: remote.
remote fetch. ] ].
^ repository
^ newRepository

0 comments on commit 05e6d5a

Please sign in to comment.