diff options
| author | Jenkins <jenkins@review.openstack.org> | 2011-09-23 15:51:35 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2011-09-23 15:51:35 +0000 |
| commit | b020a057724cdf3cff59e168058ec9eb11a347ba (patch) | |
| tree | 8a5c6dfb9b2c827fbc8ea72306af42234927342e | |
| parent | 7c741809e5b0dce9ed464d04254f01648d3f6c20 (diff) | |
| parent | 48bc6645da2f12a6c1667d2db49afe1d5417de9f (diff) | |
| download | nova-b020a057724cdf3cff59e168058ec9eb11a347ba.tar.gz nova-b020a057724cdf3cff59e168058ec9eb11a347ba.tar.xz nova-b020a057724cdf3cff59e168058ec9eb11a347ba.zip | |
Merge "Fix rfc.sh's check for the project"
| -rwxr-xr-x | tools/rfc.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/rfc.sh b/tools/rfc.sh index 0bc153195..901fade1c 100755 --- a/tools/rfc.sh +++ b/tools/rfc.sh @@ -48,13 +48,13 @@ add_remote() if project_list=`ssh -p29418 -o StrictHostKeyChecking=no $username@review.openstack.org gerrit ls-projects 2>/dev/null` then echo "$username@review.openstack.org:29418 worked." - if echo $project_list | grep $project >/dev/null + if echo $project_list | grep -w "${project%.git}" >/dev/null then echo "Creating a git remote called gerrit that maps to:" echo " ssh://$username@review.openstack.org:29418/$project" git remote add gerrit ssh://$username@review.openstack.org:29418/$project else - echo "The current project name, $project, is not a known project." + echo "The current project name, ${project%.git}, is not a known project." echo "Please either reclone from github/gerrit or create a" echo "remote named gerrit that points to the intended project." return 1 |
