#!/bin/sh svn_fetch() { export GIT_SVN_NO_LIB=1 if [ ! -d .git/refs/remotes/$2 ]; then git-svn init -i $1 $2 fi git-svn fetch -i $1 } cat .gear-svn | while read name repo; do if [ "x$name" == "x" ]; then exit 0 fi if [ "x$repo" == "x" ]; then echo "Repo not defined for $name" exit -1 fi echo "Updating $name..." svn_fetch "$name" "$repo" done