Fixing deploy script
This commit is contained in:
parent
4d77d9e328
commit
024a9bf692
|
@ -51,11 +51,10 @@ def version_number_from_git(tag_prefix='release/', sha_length=10, version_format
|
||||||
"git status --untracked-files=no -s")) > 0
|
"git status --untracked-files=no -s")) > 0
|
||||||
|
|
||||||
if int(commits_since_tag) == 0:
|
if int(commits_since_tag) == 0:
|
||||||
version_string = latest_release
|
version_string = str(latest_release)
|
||||||
else:
|
else:
|
||||||
next_version = increment_version(latest_release)
|
next_version = increment_version(latest_release)
|
||||||
version_string = version_format.format(
|
version_string = version_format.format(version=next_version, commits=commits_since_tag, sha=sha)
|
||||||
version=next_version, commits=commits_since_tag, sha=sha)
|
|
||||||
|
|
||||||
if is_dirty:
|
if is_dirty:
|
||||||
version_string += ".dirty"
|
version_string += ".dirty"
|
||||||
|
@ -78,7 +77,7 @@ def read_app_description_from_segment(segment):
|
||||||
|
|
||||||
|
|
||||||
def patch_app_description_in_segment(segment, version, project_name, time, date):
|
def patch_app_description_in_segment(segment, version, project_name, time, date):
|
||||||
assert len(version) < 32
|
#assert len(version) < 32
|
||||||
assert len(project_name) < 32
|
assert len(project_name) < 32
|
||||||
assert len(time) < 16
|
assert len(time) < 16
|
||||||
assert len(date) < 16
|
assert len(date) < 16
|
||||||
|
|
Loading…
Reference in New Issue