Skip to content

Commit a3d67fb

Browse files
authored
Merge pull request #890 from vmedcy/fix-lib-tag-reference
Fix regression: Allow #tip and #latest tags in *.lib
2 parents ff6b14a + 77c0272 commit a3d67fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ def fromlib(cls, lib=None):
10611061

10621062
if m_repo_ref:
10631063
rev = m_repo_ref.group(3)
1064-
if rev and not re.match(r'^([a-fA-F0-9]{6,40})$', rev):
1064+
if rev and rev != 'latest' and rev != 'tip' and not re.match(r'^([a-fA-F0-9]{6,40})$', rev):
10651065
error('Named branches not allowed in .lib, offending lib is {} '.format(os.path.basename(lib)))
10661066

10671067
if not (m_local or m_bld_ref or m_repo_ref):

0 commit comments

Comments
 (0)