Skip to content

Commit

Permalink
Refs #21777: change the branch checkout code to mimic 2.10.x
Browse files Browse the repository at this point in the history
Signed-off-by: Juanjo Garcia <juanjosegarcia@eprosima.com>
  • Loading branch information
juanjo4936 committed Jan 7, 2025
1 parent 496bf1a commit 5a68d06
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,20 +248,15 @@ def configure_doxyfile(
fastdds_python_branch = os.environ.get('FASTDDS_PYTHON_BRANCH', None)

# First try to checkout to ${FASTDDS_PYTHON_BRANCH}
# Else try with current documentation branch
# Else checkout to master
# Else checkout to 1.2.x
if (fastdds_python_branch and
fastdds_python.refs.__contains__(
'origin/{}'.format(fastdds_python_branch))):
fastdds_python_branch = 'origin/{}'.format(fastdds_python_branch)
elif (docs_branch and
fastdds_python.refs.__contains__('origin/{}'.format(docs_branch))):
fastdds_python_branch = 'origin/{}'.format(docs_branch)
else:
print(
'Fast DDS Python does not have either "{}" or "{}" branches'
.format(fastdds_python_branch, docs_branch))
fastdds_python_branch = 'origin/1.2.x'
print(f'Fast DDS Python branch is not set by env var. Using "{fastdds_python_branch}"')


# Actual checkout
print('Checking out Fast DDS Python branch "{}"'.format(
Expand Down

0 comments on commit 5a68d06

Please sign in to comment.