From b32b01d27201442c741efd2218366639a096d4fe Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Wed, 22 Feb 2023 13:21:47 +0100 Subject: [PATCH] setup.py: fix version bug --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 20b54d6..64b0179 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ cnorxz_version = subprocess.run([path_to_cnorxz+"/bin/cnorxz-config",'--version' assert len(git_tags) != 0, "no version tags found" git_tag = git_tags[-1] version = git_tag[1:] + 'dev' -git_hash_tag = subprocess.run(['git','rev-parse',git_tag],stdout=subprocess.PIPE).stdout.decode('ascii')[:-1] +git_hash_tag = subprocess.run(['git','rev-list','-n','1',git_tag],stdout=subprocess.PIPE).stdout.decode('ascii')[:-1] if git_hash_tag == git_hash and expected_cnorxz_version != cnorxz_version: version = git_tag[1:]