From 4f02559849079776743fe2a37e7c6e023bd1aa66 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Mon, 23 Mar 2020 13:07:42 +0100 Subject: [PATCH] Remove spaces from public key's comment Apparently this breaks things in some systems Fixes #87 --- lib/screens/settings_git_remote.dart | 4 ++-- lib/setup/screens.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/screens/settings_git_remote.dart b/lib/screens/settings_git_remote.dart index b3291f11..d9c4a96e 100644 --- a/lib/screens/settings_git_remote.dart +++ b/lib/screens/settings_git_remote.dart @@ -97,9 +97,9 @@ class _GitRemoteSettingsScreenState extends State { } void _generateSshKey(BuildContext context) { - var comment = "GitJournal " + + var comment = "GitJournal-" + Platform.operatingSystem + - " " + + "-" + DateTime.now().toIso8601String().substring(0, 10); // only the date generateSSHKeys(comment: comment).then((String publicKey) { diff --git a/lib/setup/screens.dart b/lib/setup/screens.dart index 39567640..0da1b817 100644 --- a/lib/setup/screens.dart +++ b/lib/setup/screens.dart @@ -364,9 +364,9 @@ class GitHostSetupScreenState extends State { return; } - var comment = "GitJournal " + + var comment = "GitJournal-" + Platform.operatingSystem + - " " + + "-" + DateTime.now().toIso8601String().substring(0, 10); // only the date generateSSHKeys(comment: comment).then((String publicKey) {