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:
Vishesh Handa
2019-02-23 15:30:33 +01:00
parent 4029971a63
commit 180652a10b

View File

@ -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,