Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M3P2 HTML Generator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
12
Issues
12
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
M3P2
M3P2 HTML Generator
Commits
9a9d7b66
Commit
9a9d7b66
authored
Apr 01, 2019
by
Goutte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use submodules for the courses.
parent
5c7c0a82
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
.gitmodules
.gitmodules
+3
-0
clone_courses.sh
bin/clone_courses.sh
+9
-5
pages
user/pages
+1
-0
No files found.
.gitmodules
0 → 100644
View file @
9a9d7b66
[submodule "user/pages"]
path = user/pages
url = https://m3p2.ljbac.com/m3p2/courses.git
bin/clone_courses.sh
View file @
9a9d7b66
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment