Skip to content

Fix regression: Allow #tip and #latest tags in *.lib #890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mbed/mbed.py
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ def fromlib(cls, lib=None):

if m_repo_ref:
rev = m_repo_ref.group(3)
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):
error('Named branches not allowed in .lib, offending lib is {} '.format(os.path.basename(lib)))

if not (m_local or m_bld_ref or m_repo_ref):
Expand Down