Skip to content

Commit

Permalink
Merge pull request #2 from hannesdelbeke/feature/submodule-support
Browse files Browse the repository at this point in the history
add submodule support
  • Loading branch information
hannesdelbeke authored Dec 19, 2022
2 parents c2b0316 + c9a040e commit 2addaa2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ else
echo "Copying files matching \"${FILE_FILTER}\" from \"${SRC_REPO_NAME}/${SRC_PATH}\" and pushing it to ${DST_OWNER}/${DST_REPO_NAME}"
fi

git clone --branch ${SRC_BRANCH} --single-branch --depth 1 https://${PERSONAL_TOKEN}@github.com/${SRC_REPO}.git
git clone --recurse-submodules --branch ${SRC_BRANCH} --single-branch --depth 1 https://${PERSONAL_TOKEN}@github.com/${SRC_REPO}.git
git submodule update --remote
if [ "$?" -ne 0 ]; then
echo >&2 "Cloning '$SRC_REPO' failed"
exit 1
Expand Down Expand Up @@ -115,7 +116,8 @@ if [[ -n "$FILTER" ]]; then
fi


git clone --branch ${DST_BRANCH} --single-branch --depth 1 https://${PERSONAL_TOKEN}@github.com/${DST_REPO}.git ${DST_REPO_DIR}
git clone --recurse-submodules --branch ${DST_BRANCH} --single-branch --depth 1 https://${PERSONAL_TOKEN}@github.com/${DST_REPO}.git ${DST_REPO_DIR}
git submodule update --remote
if [ "$?" -ne 0 ]; then
echo >&2 "Cloning branch '$DST_BRANCH' in '$DST_REPO' failed"
echo >&2 "Falling back to default branch"
Expand Down

0 comments on commit 2addaa2

Please sign in to comment.