Skip to content

Commit 1d5e952

Browse files
committed
Fix when submodules fail
1 parent 0a16084 commit 1d5e952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export DISPLAY=:6
2323
# Clone, and checkout the revision if any
2424
# Removed --depth 1 because we want to read vignette c/m times
2525
echo "::group::Cloning R package repository"
26-
git clone --recurse-submodules "$URL" "${REPO}" || git clone "$URL" "${REPO}"
26+
git clone --recurse-submodules "$URL" "${REPO}" || rm -Rf ${REPO} && git clone "$URL" "${REPO}"
2727
DEFAULT_BRANCH=$(git -C "${REPO}" branch --show-current)
2828

2929
if [ "${2}" ]; then

0 commit comments

Comments
 (0)