mirror of
https://github.com/drewcassidy/yaclog.git
synced 2024-09-01 14:58:58 +00:00
Attempt to fix tagging error?
This commit is contained in:
parent
08be02a49c
commit
140faccb69
@ -231,11 +231,13 @@ def release(obj: Changelog, v_flag, commit):
|
|||||||
abort=True)
|
abort=True)
|
||||||
|
|
||||||
if tracked > 0:
|
if tracked > 0:
|
||||||
repo.index.commit(f'Version {cur_version.name}\n\n{cur_version.body()}')
|
commit = repo.index.commit(f'Version {cur_version.name}\n\n{cur_version.body()}')
|
||||||
print(f'Created commit {repo.head.commit.hexsha[0:7]}')
|
print(f'Created commit {repo.head.commit.hexsha[0:7]}')
|
||||||
|
else:
|
||||||
|
commit = repo.head.commit
|
||||||
|
|
||||||
repo.create_tag(cur_version.name, message=cur_version.body(False))
|
repo_tag = repo.create_tag(cur_version.name, ref=commit, message=cur_version.body(False))
|
||||||
print(f'Created tag "{cur_version.name}".')
|
print(f'Created tag "{repo_tag.name}".')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user