Commit 9a9d7b66 authored by Goutte's avatar Goutte

Use submodules for the courses.

parent 5c7c0a82
[submodule "user/pages"]
path = user/pages
url = https://m3p2.ljbac.com/m3p2/courses.git
#!/usr/bin/env bash #!/usr/bin/env bash
# todo: make sure we're at project root
COURSES_DIR="user/pages" COURSES_DIR="user/pages"
BACKUP="${COURSES_DIR}.$(date +%F_%R)" BACKUP="${COURSES_DIR}.$(date +%F_%R)"
# make sure we're at project root
cd "$(dirname "$(realpath "$0")")";
cd ..
echo -e "Creating backup of pages in ${BACKUP}" echo -e "Creating backup of pages in ${BACKUP}"
mv ${COURSES_DIR} ${BACKUP} mv ${COURSES_DIR} ${BACKUP}
#COURSES_DIR="user/pages/03.courses" #COURSES_DIR="user/pages/03.courses"
# #
#rm ${COURSES_DIR} #rm ${COURSES_DIR}
# todo: shallow? (perhaps we should use a submodule anyways) # shallow? (perhaps we should use a submodule anyways)
git clone ssh://git@m3p2.ljbac.com:10022/m3p2/courses.git ${COURSES_DIR} #git clone ssh://git@m3p2.ljbac.com:10022/m3p2/courses.git ${COURSES_DIR}
git submodule update --init --recursive
git submodule foreach git pull origin master
pages @ 959c4925
Subproject commit 959c492587f055509980f094f0f71e6cd599ca8f
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment