7 tail -n +5 < Next/Trees | while read tree type url; do
11 if test "x$type" != "xgit"; then
12 echo "Don't know how to handle type $type trees, skipping $tree ($repository)..."
16 git remote set-url ${tree} ${repository}
18 echo "Fetching tree $tree ($repository)..."
20 if ! git fetch $tree; then
21 echo "ERROR: failed to fetch tree $tree, aborting..."
25 hash=$(git show-ref --hash -- remotes/$tree/$branch)
26 printf "%-23s %s\n" $tree $hash >&3