*)
if [ -f "$cfg_reporoot/$projdir/.new_clone" ]; then
- echo "[$proj] initial git-svn setup"
- git remote rm origin >/dev/null 2>&1 || :
- git remote add --mirror origin "$url"
+ echo "[$proj] initial git setup"
+ git --git-dir . --bare init
+ git --git-dir . remote rm origin >/dev/null 2>&1 || :
+ git --git-dir . remote add --mirror origin "$url"
fi
echo "[$proj] fetching new commits from upstream"
- git remote update
- git remote prune origin
+ git --git-dir . remote update
+ git --git-dir . remote prune origin
;;
esac