Gary Wu | 3655edc | 2017-06-21 14:37:43 -0700 | [diff] [blame] | 1 | #!/bin/bash |
Gary Wu | 5cccfa9 | 2017-08-02 12:03:10 -0700 | [diff] [blame] | 2 | # |
| 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 Wu | 213a835 | 2017-06-16 13:44:28 -0700 | [diff] [blame] | 11 | while read p; do |
Gary Wu | 3655edc | 2017-06-21 14:37:43 -0700 | [diff] [blame] | 12 | 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 Wu | 213a835 | 2017-06-16 13:44:28 -0700 | [diff] [blame] | 23 | done < projects.txt |