sync: also push repos that are not having workdir changes
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s
This commit is contained in:
parent
fae59a97dc
commit
56a0ef83df
1 changed files with 5 additions and 4 deletions
|
@ -38,14 +38,15 @@ for repo in ~/.ctt \
|
||||||
git push
|
git push
|
||||||
done
|
done
|
||||||
|
|
||||||
# Repos we want to pull in, but don't want to update
|
# Repos we want to sync, but don't want to update the working tree
|
||||||
for pullonlyrepo in \
|
for repo in \
|
||||||
~/vcs/k8s-config/ \
|
~/vcs/k8s-config/ \
|
||||||
~/vcs/ansible-main/ \
|
~/vcs/ansible-main/ \
|
||||||
; do
|
; do
|
||||||
echo $pullonlyrepo
|
echo $repo
|
||||||
cd $pullonlyrepo
|
cd $repo
|
||||||
git pull
|
git pull
|
||||||
|
git push
|
||||||
done
|
done
|
||||||
|
|
||||||
# Step 2: pull/push all other repos in ~/vcs/
|
# Step 2: pull/push all other repos in ~/vcs/
|
||||||
|
|
Loading…
Reference in a new issue