mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +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 gitHubUrl = 'https://github.com/' + repoName + '/settings/keys/new';
|
||||||
final gitLabUrl = 'https://gitlab.com/' +
|
final gitLabUrl = 'https://gitlab.com/' +
|
||||||
repoName +
|
repoName +
|
||||||
'/settings/repository/#js-deploy-keys-settings';
|
'/-/settings/repository/#js-deploy-keys-settings';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (_gitCloneUrl.startsWith("git@github.com:")) {
|
if (_gitCloneUrl.startsWith("git@github.com:")) {
|
||||||
|
Log.i("Launching $gitHubUrl");
|
||||||
await launch(gitHubUrl);
|
await launch(gitHubUrl);
|
||||||
} else if (_gitCloneUrl.startsWith("git@gitlab.com:")) {
|
} else if (_gitCloneUrl.startsWith("git@gitlab.com:")) {
|
||||||
|
Log.i("Launching $gitLabUrl");
|
||||||
await launch(gitLabUrl);
|
await launch(gitLabUrl);
|
||||||
}
|
}
|
||||||
} catch (err, stack) {
|
} catch (err, stack) {
|
||||||
|
Reference in New Issue
Block a user