mirror of https://github.com/Riesi/frog_emojis.git
[tools] check lengths of renamed lists in create_tag
This commit is contained in:
parent
8230c10e01
commit
976ea4dd45
|
@ -77,6 +77,8 @@ def git_commit_raster():
|
||||||
# create a new tag with a description containing the added, modified, deleted and renamed files
|
# 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):
|
def create_tag(added, modified, deleted, renamed_old, renamed_new):
|
||||||
"""Creates a new git tag and names it appropriately"""
|
"""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
|
# get tags
|
||||||
stream = os.popen('git tag -l "auto-v*"')
|
stream = os.popen('git tag -l "auto-v*"')
|
||||||
output = stream.read()
|
output = stream.read()
|
||||||
|
|
Loading…
Reference in New Issue