HBASE-13208 Patch build should match the patch filename and not the whole relative URL in findBranchNameFromPatchName

Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
Esteban Gutierrez 2015-03-11 11:32:40 -07:00 committed by Sean Busbey
parent b5bfbc8a9f
commit 5bf98d0827
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ checkout () {
findBranchNameFromPatchName() {
local patchName=$1
for LOCAL_BRANCH_NAME in $BRANCH_NAMES; do
if [[ $patchName =~ .*$LOCAL_BRANCH_NAME.* ]]; then
if [[ $patchName =~ /jira/secure/attachment/[0-9]*/.*$LOCAL_BRANCH_NAME ]]; then
BRANCH_NAME=$LOCAL_BRANCH_NAME
break
fi