diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-10-08 21:17:49 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-10-08 21:17:49 +0000 |
commit | c9fedebcf10efd08e3d0097b993a1aed356bc981 (patch) | |
tree | bc544990b2623d8c7e4404437916c5dd2a1bab40 | |
parent | f4b09ce6c59498a9892fffe9e91d0b41f863a9de (diff) | |
parent | 0c2712df5a47112507fccdd4d1e9b001460dba4f (diff) | |
download | oslo-incubator-c9fedebcf10efd08e3d0097b993a1aed356bc981.tar.gz |
Merge "Improve error messaging for accessing review.o.o"
-rwxr-xr-x | tools/clone_openstack.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/clone_openstack.sh b/tools/clone_openstack.sh index 787c5419..c59e66c8 100755 --- a/tools/clone_openstack.sh +++ b/tools/clone_openstack.sh @@ -168,6 +168,18 @@ projects="$*" if [ -z "$projects" ] then projects=$(ssh review.openstack.org -p 29418 gerrit ls-projects | grep -v 'attic') + RC=$? + if [ $RC -ne 0 ] + then + echo "Unable to obtain a list of projects from gerrit. Check your ssh credientials for review.openstack.org" + userid=`id -un` + gerrit_userid=`git config --get gitreview.username` + if [ $userid != $gerrit_userid ] + then + echo "Identified a possible userid difference between $userid and $gerrit_userid" + fi + exit $RC + fi else # Go ahead and set things up so we will work with stackforge # repositories, in case the caller has specified one on the |