icrc: only sync .git, do not sync workdir
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
This commit is contained in:
parent
3433cead34
commit
5f32e2da60
1 changed files with 3 additions and 2 deletions
|
|
@ -15,9 +15,10 @@ echo $repolist
|
|||
cd ~/vcs
|
||||
for repo in $repolist; do
|
||||
if [ "$fromto" = "from" ]; then
|
||||
rsync -av --delete icrcnb:${dir}/${repo}/ ~/vcs/icrc-${repo}
|
||||
mkdir -p ~/vcs/icrc-${repo}
|
||||
rsync -av --delete icrcnb:${dir}/${repo}/.git/ ~/vcs/icrc-${repo}/.git
|
||||
fi
|
||||
if [ "$fromto" = "to" ]; then
|
||||
rsync -av --delete ~/vcs/icrc-${repo}/ icrcnb:${dir}/${repo}/
|
||||
rsync -av --delete ~/vcs/icrc-${repo}/.git/ icrcnb:${dir}/${repo}/.git
|
||||
fi
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue