From c72cf0f96feee9536fd051dc344ef87f8be30d78 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Wed, 21 Oct 2020 16:26:40 +0200 Subject: [PATCH] Move to iCloud: Clear the git repo state --- lib/state_container.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/state_container.dart b/lib/state_container.dart index f642a362..5429ae6a 100644 --- a/lib/state_container.dart +++ b/lib/state_container.dart @@ -404,6 +404,9 @@ class StateContainer with ChangeNotifier { await Directory(repoPath).delete(recursive: true); repoPath = newRepoPath; + _gitRepo = GitNoteRepository(gitDirPath: repoPath, settings: settings); + + _notesCache.clear(); appState.notesFolder.reset(repoPath); notifyListeners();