Untracked files prevents switching branches
David Faure 2022-07-25 (from bug 457124)
I'm using kdesrc-build with stable-kf5-qt5 branch group. It told me this today:
Updating akonadi-calendar (to branch release/22.08)
* The module akonadi-calendar had local changes from a different branch than expected:
* Expected branch: New branch to point to origin/release/22.08
* Actual branch: release/22.04
*
* To avoid conflict with your local changes, akonadi-calendar will not be updated, and the
* branch will remain unchanged, so it may be out of date from upstream.
* You had local changes to akonadi-calendar, which have been re-applied.
akonadi-calendar update complete, 0 files affected.
STEPS TO REPRODUCE
- Create a text file locally (e.g. some log or diff) in a repository
- Change the branch for that repo in kdesrc-build's config
- kdesrc-build --src-only
OBSERVED RESULT
It refuses to switch branches
EXPECTED RESULT
It should switch branches just fine, there's no reason for an irrelevant local file to prevent that
SOFTWARE/OS VERSIONS
kdesrc-build 22.01