From 8f38572588af308d433a3bd7fbd93163348d98d3 Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Tue, 14 Oct 2014 15:50:18 -0700 Subject: [PATCH] support proposed/* branches Provide support for named proposed branches for selection logic This syncs the get_release_name_from_branch() function from grenade. Change-Id: I1adabf07cdc3ea6863cd30d8b6454fb40fc20288 --- functions-common | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions-common b/functions-common index 1f90da76b0..333f31da02 100644 --- a/functions-common +++ b/functions-common @@ -549,8 +549,7 @@ function is_ubuntu { # ``get_release_name_from_branch branch-name`` function get_release_name_from_branch { local branch=$1 - - if [[ $branch =~ "stable/" ]]; then + if [[ $branch =~ "stable/" || $branch =~ "proposed/" ]]; then echo ${branch#*/} else echo "master"