3 # Fetches the current master from all remotes. Used to sync with all remote
4 # hosts. No merging is done.
7 # Select the method, fetch and push is possible.
8 if [ x$1 = x -o x$1 = xfetch ]; then
10 elif [ x$1 = xpush ]; then
13 echo "Unsupported method '$1'. Only 'fetch' and 'push' is supported." >&2
17 # Fetch from/Push to each remote of each git subdirectory.
18 for project in `find . -name .git -type d`; do
19 if [ -d "$project" ]; then
23 # Fetch from/Push to all remotes.
24 for remote in `git remote`; do
25 echo "$project: ${method}ing $remote ..."