Skip to content

Commit b1cbcf2

Browse files
committed
Fix variable bug introduce with regex simplification
1 parent f1db9ac commit b1cbcf2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mbed/mbed.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ def gettags(rev=None):
816816
for ref in refs:
817817
m = re.match(r'^(.+)\s+refs\/tags\/(.+)$', ref)
818818
if m and (not rev or m.group(1).startswith(rev)):
819+
t = m.group(2)
819820
if re.match(r'^(.+)\^\{\}$', t): # detect tag "pointer"
820821
t = re.sub(r'\^\{\}$', '', t) # remove "pointer" chars, e.g. some-tag^{}
821822
for tag in tags:

0 commit comments

Comments
 (0)