I used SourceTree’s discard option to discard these.
Wappler’s discard changes does not work on such files. Its a reported issue.
Also, this quite common where Wappler create such uncommitted changes, where there is no change in file contents but they still show up as pending.
But this happenned usually when changing targets or branches.
With project updater, this is new.
So they were committed once? Are you sure about that there were no changes? In Wappler git commit list what happens if you select to show changes of a file?
It shows same code in both columns.. with no changes. See the first screenshot. On the right, it says that there are no changes.. for multiple selected files.
Actually, no. Since it showed no changes, we just discarded them.
Exactly. But it still does. I think it has something to do with the way Git creates hashes of files Maybe because of a datetime change, it starts showing up in the uncommitted section.
Like I said, it shows no difference.
I re-did the update again right now, just to get this screenshot:
Also let me get this straight: after the Updater update those files, you see them as changed in Wappler’s git manager but instead of committing them you go to source tree git manager, see them there also as uncommitted and instead of also committing - you discard them?
Maybe you didn’t see the differences because there can be differences as white space and specially line endings like LF (Mac/Linux) or CR/LF on windows.
Those line endings can automatically change when you checkout with some git clients or download with ftp.
As git does full binary compare those endings change are still seen as changes - so hence that you needed to commit them.
Usually you shouldn’t allow the git clients to change the line endings for you depending on the OS you are on.
To close this off, the project updater still keeps showing files which have no update.
It could most likely be due to the CR/LF thing.
If I update and commit these files which do not show any changes, they disappear from the final push. Not sure if its Git doing that or SourceTree.
This help for sometime, but in a few days, the updater again starts showing updates - which when selected just show no-change files again.