Fix wrong function invocation in get_version script

Reviewers: buda

Reviewed By: buda

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D2751
This commit is contained in:
Matej Ferencevic 2020-04-03 16:25:15 +02:00
parent ac3560ec8c
commit 24eb021840

View File

@ -220,7 +220,9 @@ distance = int(get_output("git", "rev-list", "--count", "--first-parent",
master_branch_merge + ".." + current_hash))
version_str = ".".join(map(str, version)) + ".0"
if distance == 0:
print(format_version(version_str, suffix=args.suffix), end="")
print(format_version(args.variant, version_str, offering,
suffix=args.suffix),
end="")
else:
print(format_version(args.variant, version_str, offering,
distance=distance, shorthash=current_hash_short,