blob: 6c2560f5c25d2ae96f427dc1adc31f6a85b711cc [file] [log] [blame]
Gary Wu3655edc2017-06-21 14:37:43 -07001#!/bin/bash
Gary Wu213a8352017-06-16 13:44:28 -07002while read p; do
Gary Wu3655edc2017-06-21 14:37:43 -07003 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 Wu213a8352017-06-16 13:44:28 -070014done < projects.txt