mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 04:07:53 +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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
var baseDir = _fileStorage.baseDirectory;
|
await gitAdd(dirName, '.');
|
||||||
var filePath = result.noteFilePath.replaceFirst(baseDir + "/", "");
|
|
||||||
|
|
||||||
await gitAdd(dirName, filePath);
|
|
||||||
await gitCommit(
|
await gitCommit(
|
||||||
gitFolder: dirName,
|
gitFolder: dirName,
|
||||||
authorEmail: Settings.instance.gitAuthorEmail,
|
authorEmail: Settings.instance.gitAuthorEmail,
|
||||||
|
Reference in New Issue
Block a user