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/>.
#
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