mirror of
https://git.oxeozero.it.com/oxeo0/blog-deploy.git
synced 2025-05-15 08:22:13 -04:00
fix submodules during clone
This commit is contained in:
parent
131a0e0ba5
commit
3e4d48535f
2 changed files with 6 additions and 2 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
repo/
|
||||
servable/
|
6
entry.sh
6
entry.sh
|
@ -12,9 +12,11 @@ while true; do
|
|||
git config --global --add http.proxy socks5h://localhost:9050
|
||||
if [ -d "/repo/.git" ]; then
|
||||
git restore .
|
||||
git pull origin "${BRANCH}" --recurse-submodules
|
||||
git pull origin "${BRANCH}" --recursive --shallow-submodules
|
||||
git submodule update --recursive --remote
|
||||
else
|
||||
git clone -b "${BRANCH}" "${REPO_URL}" /repo --recursive
|
||||
git clone -b "${BRANCH}" "${REPO_URL}" /repo --recursive --shallow-submodules --depth=1
|
||||
git submodule update --recursive --remote
|
||||
fi;
|
||||
|
||||
sed -i "s/^site_url:.*//g" /repo/mkdocs.yml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue