forked from pharo-vcs/iceberg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use SSH url instead of Git URL
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
12 changes: 6 additions & 6 deletions
12
Iceberg-Plugin-GitHub.package/IceTipGitHubRepositoryPanel.class/instance/newRepository.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |