Closed mnowotnik closed 2 years ago
Yup. I've noticed this happening lately. Clearly a regression. I'll look into it and write an automated test.
Thanks for fast reply! Happy to support you! :smile:
Sadly, I can't seem to reproduce it. Though I have seem empty commits in my git log. Can you reliably reproduce it? (Could you please try with 1.83.10?)
Yes, I just rechecked with 1.83.10. I enter note. I press Android Back button. I sync notes. Empty commit is being made.
Could you attach a copy of your debug logs, please?
(Settings -> Debug)
I'm mostly interested in the parts which print out all your settings. So I can configure GitJournal in the same way. it's printed in the log each time the app loads.
version of GitJournal on Android: 1.83.9+3526
What is happening ? When a user enters a note and then immediately exists the note widget using any of the provided editors (Markdown, raw, journal, checklist) or simply the View mode, the note is marked as changed, even though no changes have been performed by the user. Then, during the synchronization process one of two things will usually happen:
modified
field, it will be changed to the datetime of the latest viewing; this change will be commmitedmodified
field, the empty commit will be made and pushedWhat should be happening? When a user enters a note via any mode and doesn't perform any changes, the GitJournal shouldn't update or change the note.