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();