mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +08:00
GitLab manual setup: Fix url
GitLab seems to have changed the url to add a deploy key manually.
This commit is contained in:
@ -427,12 +427,14 @@ class GitHostSetupScreenState extends State<GitHostSetupScreen> {
|
||||
final gitHubUrl = 'https://github.com/' + repoName + '/settings/keys/new';
|
||||
final gitLabUrl = 'https://gitlab.com/' +
|
||||
repoName +
|
||||
'/settings/repository/#js-deploy-keys-settings';
|
||||
'/-/settings/repository/#js-deploy-keys-settings';
|
||||
|
||||
try {
|
||||
if (_gitCloneUrl.startsWith("git@github.com:")) {
|
||||
Log.i("Launching $gitHubUrl");
|
||||
await launch(gitHubUrl);
|
||||
} else if (_gitCloneUrl.startsWith("git@gitlab.com:")) {
|
||||
Log.i("Launching $gitLabUrl");
|
||||
await launch(gitLabUrl);
|
||||
}
|
||||
} catch (err, stack) {
|
||||
|
Reference in New Issue
Block a user