3 tail -n +5 < Next/Trees | while read tree type url; do
7 if test "x$type" != "xgit"; then
8 echo "Don't know how to handle type $type trees, skipping..."
12 git remote add -t $branch --no-tags $tree $repository > /dev/null 2>&1; ret=$?
14 if test $ret -eq 128; then
15 echo "Remote $tree exists, skipping..."
17 if test $ret -ne 0; then
18 echo "Failed to add remote $tree: $ret"
20 echo "Remote $tree added"