Skip to content

Commit

Permalink
[FIX] git-mig-auto-msg: util/ has been split for a while now...
Browse files Browse the repository at this point in the history
  • Loading branch information
KangOl committed May 23, 2023
1 parent 9a83ca0 commit bba3d3f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions git-mig-auto-msg
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,15 @@ def main(tag=None, message=None, coauthors=(), amend=False):
guess_tag = '[FIX]'
f = l[2:].strip()

if f in {"migrations/util.py", "migrations/report-migration.xml"}:
if f.startswith("migrations/util/"):
util = True
continue

_, module, version, *_ = f.split('/')
try:
_, module, version, *_ = f.split('/')
except ValueError:
# Not an upgrade script?
continue
version = '.'.join(version.split('.')[:2]) if version != '0.0.0' else '0.0.0'
mods[module].add(version)

Expand Down

0 comments on commit bba3d3f

Please sign in to comment.