File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
dev-tools/deployment-scripts Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,17 @@ if [ ! -d "${PROJECT_ROOT}" ]; then
5454 sudo mkdir -p ${PROJECT_ROOT}
5555fi
5656TMP_CLONE_DIR=$( mktemp -d)
57- git clone https://github.com/apache/airavata-django-portal.git ${TMP_CLONE_DIR}
58- sudo rsync -av ${TMP_CLONE_DIR} / ${PROJECT_ROOT} /airavata-django-portal/
57+ REPO_URL=" https://github.com/apache/airavata-portals.git"
58+ SUBDIR=" airavata-django-portal"
59+
60+ # Use sparse checkout to get only the subdirectory
61+ git clone --filter=blob:none --no-checkout ${REPO_URL} ${TMP_CLONE_DIR}
62+ cd ${TMP_CLONE_DIR}
63+ git sparse-checkout set ${SUBDIR}
64+ git checkout main
65+ cd -
66+
67+ sudo rsync -av ${TMP_CLONE_DIR} /${SUBDIR} / ${PROJECT_ROOT} /airavata-django-portal/
5968rm -rf ${TMP_CLONE_DIR}
6069
6170echo " >>> Creating Python 3.10 virtual environment..."
You can’t perform that action at this time.
0 commit comments