mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 18:03:14 +08:00
GitAdd: All everything
It seems like there is a bug under which 'git add' hasn't been working. I'm hoping this will just fix it and easily add all the old unadded notes as well.
This commit is contained in:
@ -37,10 +37,7 @@ class GitNoteRepository implements NoteRepository {
|
||||
return result;
|
||||
}
|
||||
|
||||
var baseDir = _fileStorage.baseDirectory;
|
||||
var filePath = result.noteFilePath.replaceFirst(baseDir + "/", "");
|
||||
|
||||
await gitAdd(dirName, filePath);
|
||||
await gitAdd(dirName, '.');
|
||||
await gitCommit(
|
||||
gitFolder: dirName,
|
||||
authorEmail: Settings.instance.gitAuthorEmail,
|
||||
|
Reference in New Issue
Block a user