Translations: Handle "." in project name
This handles repositories like "oslo.utils". We cannot just remove everything after the last ".", we need to be explicit and remove the final ".git". It fixes multiple occurences of oslo.utils for proposing translations: https://review.openstack.org/#/q/status:open++branch:master+topic:transifex/translations,n,z Change-Id: Iee4747eba75e87f5dc3cae696fafc8e7f563bd98
This commit is contained in:
parent
665c960090
commit
70b50ce17f
@ -149,7 +149,7 @@ function setup_git ()
|
||||
# COMMIT_MSG.
|
||||
function setup_review ()
|
||||
{
|
||||
FULL_PROJECT=$(grep project .gitreview | cut -f2 -d= | cut -f1 -d.)
|
||||
FULL_PROJECT=$(grep project .gitreview | cut -f2 -d= |sed -e 's/\.git$//')
|
||||
COMMIT_MSG="Imported Translations from Transifex"
|
||||
|
||||
git review -s
|
||||
|
Loading…
x
Reference in New Issue
Block a user