of course, with --reset it works. Without it doesn’t, so your suggestion is more a workaround than a solution.
If you run bench update the next time, you will see the same message like before:
Cannot proceed with update: You have local changes in app "erpnext" that are not committed.
Here are your choices:
1. Merge the erpnext app manually with "git pull" / "git pull --rebase" and fix conflicts.
1. Temporarily remove your changes with "git stash" or discard them completely
with "bench update --reset" or for individual repositries "git reset --hard"
2. If your changes are helpful for others, send in a pull request via GitHub and
wait for them to be merged in the core.
I am close to a solution. Actually, I found a solution already.
Go to the directory, either frappe-bench/apps/erpnext or frappe-bench/apps/frappe
Type git status
Check the list of the untracked files. There might be files, which do or don’t belong there.
Type git add --all to track those files
Type git stash
Run bench update
It should run successfully, if not, start over with 1. and repeat for the other directory
On this point you’re already done, but you may want to apply your changes, which you stashed. So continue with 8. if you stashed things, which you consider important.
8 . While you’re still in the folder, either frappe-bench/apps/erpnext or frappe-bench/apps/frappe type git stash apply
Your changes will be applied again, but on the next run, you will run into the same issue like you had before.
So 1. - 7. was the solution we were looking for.
Maybe someone can tell, why “print formats” and “support/web forms” are breaking bench update. These are my files:
How to proceed now? I’m not experienced with git, but am I right to assume to do:
git stash
bench update
git stash apply
How does that work? Will git stash store my changes and after update will it merge into the new file? Or will it overwrite new file with the one I stashed? I’m worried I might lose the new features if the latter is true. Sorry I know this is really git related but I hope this might help more users.