"ERROR: update failed" when running west update
#28668
-
I often get the following error when running It usually happens when I have non-commited changes, but it could also happen in other cases I've not been able to characterized. Is there a way to force |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Make sure to stash or commit any unstaged changes. West update uses git checkout --detach internally to update the project without overwriting your local branches, which can fail if the checkout would overwrite local uncommitted work. In this case this is west trying to help you from deleting work. |
Beta Was this translation helpful? Give feedback.
-
What if I have no file checked out ? EDIT: I indeed have a file modified there. Not sure how it happened. |
Beta Was this translation helpful? Give feedback.
Make sure to stash or commit any unstaged changes. West update uses git checkout --detach internally to update the project without overwriting your local branches, which can fail if the checkout would overwrite local uncommitted work. In this case this is west trying to help you from deleting work.