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
ifGit.isdetached(): # try to find associated refs to avoid detached state
608
-
refs=Git.getrefs(rev)
609
-
forrefinrefs: # re-associate with a local or remote branch (rev is the same)
610
-
branch=re.sub(r'^(.*?)\/(.*?)$', r'\2', ref)
606
+
branch=None
607
+
refs=Git.getrefs(rev)
608
+
forrefinrefs: # re-associate with a local or remote branch (rev is the same)
609
+
m=re.match(r'^(.*?)\/(.*?)$', ref)
610
+
ifmandm.group(2) !="HEAD": # matches origin/<branch> and isn't HEAD ref
611
+
ifnotos.path.exists(os.path.join('.git', 'refs', 'heads', m.group(2))): # okay only if local branch with that name doesn't exist (git will checkout the origin/<branch> in that case)
612
+
branch=m.group(2)
613
+
elifref!="HEAD":
614
+
branch=ref# matches local branch and isn't HEAD ref
615
+
616
+
ifbranch:
611
617
info("Revision \"%s\" matches a branch \"%s\" reference. Re-associating with branch"% (rev, branch))
"A static library \"%s\" in \"%s\" uses a non-standard .lib file extension, which is not compatible with the mbed build tools.\n"
819
-
"Please change the extension of \"%s\" (for example to \"%s\").\n"% (os.path.basename(lib), os.path.split(lib)[0], os.path.basename(lib), os.path.basename(lib).replace('.lib', '.ar')))
"File \"%s\" in \"%s\" uses a non-standard .lib file extension, which is not compatible with the mbed build tools.\n"% (os.path.basename(lib), os.path.split(lib)[0]))
Copy file name to clipboardExpand all lines: setup.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@
18
18
19
19
setup(
20
20
name="mbed-cli",
21
-
version="0.9.9",
21
+
version="0.9.10",
22
22
description="ARM mbed command line tool for repositories version control, publishing and updating code from remotely hosted repositories (GitHub, GitLab and mbed.org), and invoking mbed OS own build system and export functions, among other operations",
0 commit comments