mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 12:23:44 +08:00
Move to iCloud: Clear the git repo state
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user