From db93d5ab2715771c3c70dca8c8e4d97e92a15141 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Thu, 30 Jul 2020 12:04:00 +0200 Subject: [PATCH] Revert "Fix the case when the repo folder disappears" This reverts commit 2ee25e0b8ff7d0715ce419e044649980ab6c6e31. --- lib/app.dart | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/app.dart b/lib/app.dart index 0d363b9b..92e29cd4 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -66,21 +66,6 @@ class JournalApp extends StatefulWidget { Log.i("New Documents Directory Path ${dir.path}"); } - if (appState.remoteGitRepoConfigured) { - var gitBaseDir = appState.gitBaseDirectory; - // Something major has gone wrong. - var repoFolder = p.join(gitBaseDir, appState.remoteGitRepoFolderName); - if (!File(repoFolder).existsSync()) { - // Reset the state - appState.remoteGitRepoConfigured = false; - appState.localGitRepoConfigured = false; - - // Local Folder - var localRepoDir = p.join(gitBaseDir, appState.localGitRepoFolderName); - await Directory(localRepoDir).delete(recursive: true); - } - } - // Handle migrations - Remove this code in 2021 var localConfigured = appState.localGitRepoConfigured; if (localConfigured && appState.remoteGitRepoConfigured == false) {