We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff6b14a + 77c0272 commit a3d67fbCopy full SHA for a3d67fb
mbed/mbed.py
@@ -1061,7 +1061,7 @@ def fromlib(cls, lib=None):
1061
1062
if m_repo_ref:
1063
rev = m_repo_ref.group(3)
1064
- if rev and not re.match(r'^([a-fA-F0-9]{6,40})$', rev):
+ if rev and rev != 'latest' and rev != 'tip' and not re.match(r'^([a-fA-F0-9]{6,40})$', rev):
1065
error('Named branches not allowed in .lib, offending lib is {} '.format(os.path.basename(lib)))
1066
1067
if not (m_local or m_bld_ref or m_repo_ref):
0 commit comments