Skip to content

Commit 3ecc2e7

Browse files
committed
fix: fetch all during release
1 parent 7b01519 commit 3ecc2e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/release.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ def get_version_increment_type(last_version):
3838

3939

4040
def fetch_latest_and_verify(expected_version_tag):
41-
check_output(["git", "fetch"])
41+
check_output(["git", "fetch", "--all"])
4242
latest_version = get_current_version()
4343
if latest_version != expected_version_tag:
4444
raise ValueError(f"Expected {expected_version_tag} to be latest tag, but was {latest_version}")
4545

4646

4747
def get_current_version():
48+
# ensure tags retrieved
49+
check_output(["git", "fetch", "--all"])
4850
# get the last release tag
4951
stdout = check_output(["git", "describe", "--abbrev=0", "--tags"])
5052
stdout = stdout.decode("utf-8")

0 commit comments

Comments
 (0)