From e35f37effa483c1bb4353e601b097e0fbcf47384 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 5 Aug 2008 18:51:14 +0200 Subject: [PATCH] fetch all remotes, do not depend on Next/Trees Signed-off-by: Nico Schottelius --- linux/fetch-branches.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/linux/fetch-branches.sh b/linux/fetch-branches.sh index c3379c3..ebcb999 100755 --- a/linux/fetch-branches.sh +++ b/linux/fetch-branches.sh @@ -16,13 +16,13 @@ # along with this file. If not, see . # -for remote in $(awk '$2 ~ /git/ { print $1 }' Next/Trees); do - url=$(awk "\$1 ~ /$remote/ { print \$3 }" Next/Trees) - rurl=$(echo $url | awk -F'#' '{ print $1 }') - branch=$(echo $url | awk -F'#' '{ print $2 }') - +echo "Fetching remotes:" +for remote in $(git-remote); do + echo -n "${remote}..." git-fetch -n $remote; ret=$? if [ $ret -ne 0 ]; then echo "Problem with $remote (see above)" + else + echo "done" fi done