Skip to content

Commit

Permalink
Docs: fix for the readthedocs PR rendering
Browse files Browse the repository at this point in the history
The original procedure worked only when the PR was coming from the same
repo that was the target of the PR.  This is not normally the case.

The original check out has the commit we need.  Just use it as the remote,
fetch and checkout the commit hash we need.

Signed-off-by: Bill Mills <bill.mills@linaro.org>
  • Loading branch information
wmamills authored and arnopo committed Oct 11, 2023
1 parent d7c605c commit dceaa9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ build:
- git clone --recurse-submodules https://github.com/OpenAMP/openamp-docs.git
# now adjust the focused submodule to the PR in progress
- echo "URL=${READTHEDOCS_GIT_CLONE_URL} COMMIT=${READTHEDOCS_GIT_COMMIT_HASH}"
- (cd openamp-docs/libmetal; git remote add this_pr ${READTHEDOCS_GIT_CLONE_URL}; git fetch this_pr )
- (cd openamp-docs/libmetal; git remote add this_pr ../../.git )
- (cd openamp-docs/libmetal; git fetch this_pr $(cd ../..; git rev-parse HEAD) )
- (cd openamp-docs/libmetal; git checkout $(cd ../..; git rev-parse HEAD) )
- (cd openamp-docs/libmetal; git log -n 1 --oneline)
- (cd openamp-docs; git submodule status)
Expand Down

0 comments on commit dceaa9f

Please sign in to comment.