- directory="$1"; shift
-
- save_terminal_title
-
- # make a nice echoer since we want to use it inside conditions below.
- local nicedir="$directory"
- if [ $nicedir == "." ]; then
- nicedir=$(\pwd)
- fi
- local blatt="echo retrieving '$nicedir'..."
-
- pushd "$directory" &>/dev/null
- if [ -d "CVS" ]; then
- if test_writeable "CVS"; then
- $blatt
- cvs update . | $TO_SPLITTER
- test_or_die "cvs update"
- fi
- elif [ -d ".svn" ]; then
- if test_writeable ".svn"; then
- $blatt
- svn update . | $TO_SPLITTER
- test_or_die "svn update"
- fi
- elif [ -d ".git" ]; then
- if test_writeable ".git"; then
- $blatt
-
-# classic implementation, but only works with one master branch.
-# fixes will be forthcoming from development branch.
-
-# git pull 2>&1 | grep -v "X11 forwarding request failed" | $TO_SPLITTER
-# if [ ${PIPESTATUS[0]} -ne 0 ]; then false; fi
-# test_or_die "git pull"
-
-
-#let's start over clean here...
-
- git remote update
- test_or_die "git remote update"