handle repositories in parts of the tree other than openstack/
Change-Id: Iffbd49d963cb782db7c106ead46afdc8f5ea4147 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
70171305fb
commit
4567d7294b
|
@ -37,6 +37,7 @@ VERSION=$2
|
|||
# out locally to an alternate name. Use the git remote URL as a source
|
||||
# of better information for the real repository name.
|
||||
SHORTNAME=$(basename $(cd $REPODIR && git config --get remote.origin.url))
|
||||
REPOORGNAME=$(basename $(dirname $(cd $REPODIR && git config --get remote.origin.url)))
|
||||
|
||||
# Assign a default "from" email address if one is not specified by the
|
||||
# user's environment.
|
||||
|
@ -113,7 +114,7 @@ if git branch -a | grep -q origin/stable/$SERIES; then
|
|||
fi
|
||||
|
||||
# Set up email tags for the project owner.
|
||||
PROJECT_OWNER=${PROJECT_OWNER:-$(get-repo-owner --email-tag openstack/$SHORTNAME || echo "")}
|
||||
PROJECT_OWNER=${PROJECT_OWNER:-$(get-repo-owner --email-tag $REPOORGNAME/$SHORTNAME || echo "")}
|
||||
if [[ "$PROJECT_OWNER" != "" ]]; then
|
||||
email_tags="--email-tags ${PROJECT_OWNER}"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue