Gary Wu | 3655edc | 2017-06-21 14:37:43 -0700 | [diff] [blame] | 1 | #!/bin/bash |
Gary Wu | 213a835 | 2017-06-16 13:44:28 -0700 | [diff] [blame] | 2 | while read p; do |
Gary Wu | 3655edc | 2017-06-21 14:37:43 -0700 | [diff] [blame] | 3 | if [ ! -e $p ]; then |
4 | echo $p | ||||
5 | git clone ssh://gerrit.onap.org:29418/$p $p | ||||
6 | else | ||||
7 | pushd $p > /dev/null | ||||
8 | # git fetch | ||||
9 | # git reset --hard origin | ||||
10 | echo -ne "$p:\t" | ||||
11 | git pull | ||||
12 | popd > /dev/null | ||||
13 | fi | ||||
Gary Wu | 213a835 | 2017-06-16 13:44:28 -0700 | [diff] [blame] | 14 | done < projects.txt |