Closed TheDevMinerTV closed 3 months ago
I am not sure if it is a bug at all. If you want to:
Push into the repo from outside, for example adding a README or something
then you should do it using Tools -> File Manager -> root files
In fact repository only store the output file so these files are not expected to be modified from external entites.
The only thing to do is to detect such case and add notice which explains what is an issue in this case
I am closing this issue due lack of reply - feel free to reopen this issue if more details will be available
Operating system
Windows 10 22H2
Publii version
0.44.4 (build 16557)
Post editor
None
Bug description
When someone/something pushes to the underlying Git repo that Publii is syncing to, Publii will be unable to sync to the Git repo. The application will still mark the local changes up until that point as synced and therefore "finish" all syncs successfully eventhough it's not in sync yet.
Steps to reproduce
Relevant log output
Additional information
The code to fetch + rebase should probably happen here before the adding of the files: https://github.com/GetPublii/Publii/blob/a2ce42f248415746b279688567f511dd776e3c75/app/back-end/modules/deploy/git.js#L251