You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* do not attempt to fetch/pull for local unpublished repo
* do not attempt to update local unpublished repos that do not have any commits
Additionally provide a fix for a bug in can_update() that was introduced in df401d6
"Preserving local library \"%s\" in \"%s\".\nPlease publish this library to a remote URL to be able to restore it at any time."
751
756
"You can use --ignore switch to ignore all local libraries and update only the published ones.\n"
752
757
"You can also use --force switch to remove all local libraries. WARNING: This action cannot be undone."% (self.name, self.path))
753
-
ifnotcleanandself.scm.dirty():
758
+
elifnotcleanandself.scm.dirty():
754
759
err= (
755
760
"Uncommitted changes in \"%s\" in \"%s\".\nPlease discard or stash them first and then retry update.\n"
756
761
"You can also use --clean switch to discard all uncommitted changes. WARNING: This action cannot be undone."% (self.name, self.path))
757
-
ifnotforceandself.scm.outgoing():
762
+
elifnotforceandself.scm.outgoing():
758
763
err= (
759
764
"Unpublished changes in \"%s\" in \"%s\".\nPlease publish them first using the \"publish\" command.\n"
760
765
"You can also use --force to discard all local commits and replace the library with the one included in this revision. WARNING: This action cannot be undone."% (self.name, self.path))
"This %s is in detached HEAD state, and you won't be able to receive updates from the remote repository until you either checkout a branch or create a new one.\n"
1054
1059
"You can checkout a branch using \"%s checkout <branch_name>\" command before running \"mbed update\"."% (cwd_type, repo.scm.name), 1)
0 commit comments