[tools] check lengths of renamed lists in create_tag

This commit is contained in:
Stefan Riesenberger 2022-11-30 10:06:43 +01:00
parent 8230c10e01
commit 976ea4dd45
1 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,8 @@ def git_commit_raster():
# create a new tag with a description containing the added, modified, deleted and renamed files
def create_tag(added, modified, deleted, renamed_old, renamed_new):
"""Creates a new git tag and names it appropriately"""
if len(renamed_old) != len(renamed_new):
raise Exception("Mismatch of renamed_old/renamed_new length!")
# get tags
stream = os.popen('git tag -l "auto-v*"')
output = stream.read()