icrc: only sync .git, do not sync workdir
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s

This commit is contained in:
Nico Schottelius 2025-11-19 13:13:57 +01:00
commit 5f32e2da60

View file

@ -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