This repository was archived by the owner on Mar 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ REPO_NAME=${REPO:-"libpmemobj-cpp"}
2424export GITHUB_TOKEN=${DOC_UPDATE_GITHUB_TOKEN} # export for hub command
2525REPO_DIR=$( mktemp -d -t libpmemobjcpp-XXX)
2626ARTIFACTS_DIR=$( mktemp -d -t ARTIFACTS-XXX)
27+ LOCAL_REPO=$( git rev-parse --show-toplevel)
2728
2829# Only 'master' or 'stable-*' branches are valid; determine docs location dir on gh-pages branch
2930TARGET_BRANCH=${CI_BRANCH}
@@ -46,16 +47,17 @@ UPSTREAM="https://github.com/${DOC_REPO_OWNER}/${REPO_NAME}"
4647
4748pushd ${REPO_DIR}
4849echo " Clone repo:"
49- git clone ${ORIGIN } ${REPO_DIR}
50+ git clone --origin Local ${LOCAL_REPO } ${REPO_DIR}
5051cd ${REPO_DIR}
52+ git remote add origin ${ORIGIN}
5153git remote add upstream ${UPSTREAM}
5254
5355git config --local user.name ${BOT_NAME}
5456git config --local user.email " ${BOT_NAME} @intel.com"
5557hub config --global hub.protocol https
5658
5759git remote update
58- git checkout -B ${TARGET_BRANCH} upstream /${TARGET_BRANCH}
60+ git checkout -B ${TARGET_BRANCH} Local /${TARGET_BRANCH}
5961
6062echo " Build docs:"
6163mkdir -p ${REPO_DIR} /build
You can’t perform that action at this time.
0 commit comments