Skip to content

Commit 5232dc2

Browse files
committed
Use the origin/develop. Mostlikely develop is not local and only remote.
1 parent 80df366 commit 5232dc2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def get_version():
162162

163163
elif re.fullmatch(r'release/\d+\.\d+\.\d+', branch_name):
164164
# Release candidate version
165-
base_branch = 'develop' # Release candidates are branched of develop.
165+
base_branch = 'origin/develop' # Release candidates are branched of develop.
166166
print(f"Debug: Detected release branch, using '{base_branch}' as base branch")
167167
rc_number = get_unique_commit_count(base_branch)
168168
full_version = f"{base_version}rc{rc_number}"
@@ -187,3 +187,9 @@ def get_version():
187187
},
188188
version=get_version(),
189189
)
190+
191+
192+
####################################################################################
193+
194+
if __name__ == "__main__":
195+
get_version()

0 commit comments

Comments
 (0)