From 770cb4da68564cbc751cdd6dbbd512c44e8f97ec Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sun, 27 Dec 2020 21:54:03 +0100 Subject: [PATCH] Remove stupid code I'm not sure what I was thinking when I wrote this. I guess it's good to know that some users no longer have public or private keys since I fucked up the migration. Fixes APP-P7 --- lib/repository.dart | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/repository.dart b/lib/repository.dart index 721a2d7f..429d3559 100644 --- a/lib/repository.dart +++ b/lib/repository.dart @@ -80,7 +80,6 @@ class Repository with ChangeNotifier { var repoDir = Directory(repoPath); var repoDirStat = repoDir.statSync(); - List remotes; if (repoDirStat.type != FileSystemEntityType.directory) { Log.i("Calling GitInit for ${settings.folderName} at: $repoPath"); await GitRepository.init(repoPath); @@ -91,19 +90,6 @@ class Repository with ChangeNotifier { var repo = await GitRepository.load(repoPath); var remoteConfigured = repo.config.remotes.isNotEmpty; - if (remoteConfigured) { - if (settings.sshPublicKey == null || settings.sshPublicKey.isEmpty) { - var remoteNames = remotes.map((e) => e.name + ' ' + e.url).toList(); - Log.e("Public Key Empty for $remoteNames"); - logExceptionWarning(Exception("Public Key Empty"), StackTrace.current); - } - if (settings.sshPrivateKey == null || settings.sshPrivateKey.isEmpty) { - var remoteNames = remotes.map((e) => e.name + ' ' + e.url).toList(); - Log.e("Private Key Empty for $remoteNames"); - logExceptionWarning(Exception("Private Key Empty"), StackTrace.current); - } - } - return Repository._internal( repoPath: repoPath, gitBaseDirectory: gitBaseDir,