- changed status to open
- removed comment
Branch changes in the thornlist are ignored when updating
Issue #1918
open
When updating an existing GetComponents checkout, if the branch has changed in the thornlist, the old branch is checked out, so the result of running GetComponents --update is to ignore the new branch in the thornlist.
Keyword:
Comments (1)
-
- Log in to comment
The code seems to specifically implement that behavior: - It updates all branches that were specified to the 'update' command, plus 'master' (last). The branches that are specified are all branches specified for REPO_BRANCH, delimited by comma. - It then switches back to the branch that the repository was at before the update.
In this sense, it does an 'update', not a 'switch to another branch'. Now the question is what we want GetComponents to do when given the command to 'update'.