fix the clone script for the updated gerrit

gerrit now includes All-Users as one of the projects in the ls-projects
output, but that doesn't seem to be a real project so filter only on
things that actually have "openstack" at the start of the name.

Change-Id: I1c1281a5e502dd40f770c7d6ce4b06604c680137
This commit is contained in:
Doug Hellmann 2015-12-23 19:08:02 +00:00
parent 76747d6a49
commit 3912f9ec31

View File

@ -167,7 +167,7 @@ function get_one_repo {
projects="$*" projects="$*"
if [ -z "$projects" ] if [ -z "$projects" ]
then then
projects=$(ssh review.openstack.org -p 29418 gerrit ls-projects | grep -v 'attic') projects=$(ssh review.openstack.org -p 29418 gerrit ls-projects | grep '^openstack' | grep -v 'attic')
RC=$? RC=$?
if [ $RC -ne 0 ] if [ $RC -ne 0 ]
then then