fetch all remotes, do not depend on Next/Trees

Signed-off-by: Nico Schottelius <nico@denkbrett.schottelius.org>
This commit is contained in:
Nico Schottelius 2008-08-05 18:51:14 +02:00
parent 2aeeeb1e85
commit e35f37effa
1 changed files with 5 additions and 5 deletions

View File

@ -16,13 +16,13 @@
# along with this file. If not, see <http://www.gnu.org/licenses/>. # along with this file. If not, see <http://www.gnu.org/licenses/>.
# #
for remote in $(awk '$2 ~ /git/ { print $1 }' Next/Trees); do echo "Fetching remotes:"
url=$(awk "\$1 ~ /$remote/ { print \$3 }" Next/Trees) for remote in $(git-remote); do
rurl=$(echo $url | awk -F'#' '{ print $1 }') echo -n "${remote}..."
branch=$(echo $url | awk -F'#' '{ print $2 }')
git-fetch -n $remote; ret=$? git-fetch -n $remote; ret=$?
if [ $ret -ne 0 ]; then if [ $ret -ne 0 ]; then
echo "Problem with $remote (see above)" echo "Problem with $remote (see above)"
else
echo "done"
fi fi
done done