Remove spaces from public key's comment

Apparently this breaks things in some systems

Fixes #87
This commit is contained in:
Vishesh Handa
2020-03-23 13:07:42 +01:00
parent d789a2f6f0
commit 4f02559849
2 changed files with 4 additions and 4 deletions

View File

@ -97,9 +97,9 @@ class _GitRemoteSettingsScreenState extends State<GitRemoteSettingsScreen> {
}
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) {

View File

@ -364,9 +364,9 @@ class GitHostSetupScreenState extends State<GitHostSetupScreen> {
return;
}
var comment = "GitJournal " +
var comment = "GitJournal-" +
Platform.operatingSystem +
" " +
"-" +
DateTime.now().toIso8601String().substring(0, 10); // only the date
generateSSHKeys(comment: comment).then((String publicKey) {