mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/blog-deploy.git
synced 2025-05-16 02:07:05 +00:00
fix entry.sh
This commit is contained in:
parent
3e4d48535f
commit
4f5c448450
1 changed files with 7 additions and 3 deletions
10
entry.sh
10
entry.sh
|
@ -11,9 +11,13 @@ while true; do
|
||||||
git config --global --add safe.directory /repo
|
git config --global --add safe.directory /repo
|
||||||
git config --global --add http.proxy socks5h://localhost:9050
|
git config --global --add http.proxy socks5h://localhost:9050
|
||||||
if [ -d "/repo/.git" ]; then
|
if [ -d "/repo/.git" ]; then
|
||||||
git restore .
|
git stash
|
||||||
git pull origin "${BRANCH}" --recursive --shallow-submodules
|
#git submodule foreach 'git stash; git reset --hard'
|
||||||
git submodule update --recursive --remote
|
#git submodule foreach 'git checkout main ; git pull'
|
||||||
|
#git restore .
|
||||||
|
git pull origin "${BRANCH}"
|
||||||
|
git submodule update --force --recursive --remote --depth=1
|
||||||
|
git submodule foreach 'git stash ; git checkout main ; git pull'
|
||||||
else
|
else
|
||||||
git clone -b "${BRANCH}" "${REPO_URL}" /repo --recursive --shallow-submodules --depth=1
|
git clone -b "${BRANCH}" "${REPO_URL}" /repo --recursive --shallow-submodules --depth=1
|
||||||
git submodule update --recursive --remote
|
git submodule update --recursive --remote
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue