Skip to content

Commit

Permalink
Simplify website-v2-docs branch identification
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Sep 10, 2024
1 parent ce8beb6 commit 166fd31
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ci_boost_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,15 +608,17 @@ def command_build(self):
os.chdir(self.root_dir)
if self.branch is None:
self.branch = "develop"
output = subprocess.check_output(["git", "branch"]).decode("utf-8")
output = subprocess.check_output(
["git", "branch", "--show-current"]
).decode("utf-8")
lines = output.split("\n")
for line in lines:
if line.startswith("*"):
current_branch = line[2:]
if len(line) > 0:
current_branch = line
self.branch = current_branch
break

## Determine the branch of site-docs to use
## Determine the branch of website-v2-docs to use
if self.branch == "master":
checkout_branch = "master"
else:
Expand Down

0 comments on commit 166fd31

Please sign in to comment.