use git config's review.username for rfc.sh

Change-Id: I6e2e58bf37f49f023ae242b98c11f10e3f2de8b1
This commit is contained in:
termie 2011-09-26 15:49:33 -07:00
parent a2646129bc
commit e320fe5006

View File

@ -67,6 +67,11 @@ add_remote()
check_remote()
{
if [ -z "$USERNAME" ]
then
USERNAME=`git config review.username`
fi
if ! git remote | grep gerrit >/dev/null 2>&1
then
origin_project=`git remote show origin | grep 'Fetch URL' | perl -nle '@fields = split(m|[:/]|); $len = $#fields; print $fields[$len-1], "/", $fields[$len];'`