Skip to content

Commit

Permalink
Antora repository is website-v2-docs (boostorg#78)
Browse files Browse the repository at this point in the history
* Simplify branch identification

* Antora repository is website-v2-docs
  • Loading branch information
alandefreitas authored Sep 11, 2024
1 parent ce8beb6 commit 40d7618
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 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 All @@ -631,7 +633,7 @@ def command_build(self):
"clone",
"--depth=1",
"--branch=%s" % checkout_branch,
"https://github.com/cppalliance/site-docs.git",
"https://github.com/boostorg/website-v2-docs.git",
"antora",
)
os.chdir(antora_dir)
Expand Down

0 comments on commit 40d7618

Please sign in to comment.