All remote branches of all git repositories in or under this directory are
fetched.
--- /dev/null
+#!/bin/sh
+
+# Fetches the current master from all remotes. Used to sync with all remote
+# hosts. No merging is done.
+
+
+# Fetch from each remote of each git subdirectory.
+for project in `find . -name .git -type d`; do
+ if [ -d "$project" ]; then
+ pwd=`pwd`
+ cd "$project"
+
+ # Fetch from all remotes.
+ for remote in `git remote`; do
+ echo "$project: fetching $remote ..."
+ git fetch "$remote"
+ done
+
+ cd "$pwd"
+ fi
+done