GitLab manual setup: Fix url

GitLab seems to have changed the url to add a deploy key manually.
This commit is contained in:
Vishesh Handa
2020-05-26 13:29:35 +02:00
parent 8b4fa886ba
commit 0d3648768c

View File

@ -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) {