We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b01519 commit 3ecc2e7Copy full SHA for 3ecc2e7
scripts/release.py
@@ -38,13 +38,15 @@ def get_version_increment_type(last_version):
38
39
40
def fetch_latest_and_verify(expected_version_tag):
41
- check_output(["git", "fetch"])
+ check_output(["git", "fetch", "--all"])
42
latest_version = get_current_version()
43
if latest_version != expected_version_tag:
44
raise ValueError(f"Expected {expected_version_tag} to be latest tag, but was {latest_version}")
45
46
47
def get_current_version():
48
+ # ensure tags retrieved
49
50
# get the last release tag
51
stdout = check_output(["git", "describe", "--abbrev=0", "--tags"])
52
stdout = stdout.decode("utf-8")
0 commit comments