diff --git a/icrc-sync b/icrc-sync index 8b78d07..532c820 100755 --- a/icrc-sync +++ b/icrc-sync @@ -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