blob: 9afa841b3c7c170238bb8a61c17c745f6eca99a4 [file] [log] [blame]
Gary Wu3655edc2017-06-21 14:37:43 -07001#!/bin/bash
Gary Wu5cccfa92017-08-02 12:03:10 -07002#
3# Copyright 2017 Huawei Technologies Co., Ltd.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
Gary Wu213a8352017-06-16 13:44:28 -070011while read p; do
Gary Wu3655edc2017-06-21 14:37:43 -070012 if [ ! -e $p ]; then
13 echo $p
14 git clone ssh://gerrit.onap.org:29418/$p $p
15 else
16 pushd $p > /dev/null
17 # git fetch
18 # git reset --hard origin
19 echo -ne "$p:\t"
20 git pull
21 popd > /dev/null
22 fi
Gary Wu213a8352017-06-16 13:44:28 -070023done < projects.txt