From 70b50ce17f111fcb9834b5d21a59f769d5f12ba9 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 11 Aug 2014 08:12:21 +0200 Subject: [PATCH] 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 --- .../files/slave_scripts/common_translation_update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openstack_project/files/slave_scripts/common_translation_update.sh b/modules/openstack_project/files/slave_scripts/common_translation_update.sh index 4a6b46d429..45dae23ee2 100644 --- a/modules/openstack_project/files/slave_scripts/common_translation_update.sh +++ b/modules/openstack_project/files/slave_scripts/common_translation_update.sh @@ -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