From bc62cdbaf609312cf7045dea49a27c50d8d1d964 Mon Sep 17 00:00:00 2001 From: Esteban Gutierrez Date: Wed, 11 Mar 2015 11:32:40 -0700 Subject: [PATCH] HBASE-13208 Patch build should match the patch filename and not the whole relative URL in findBranchNameFromPatchName --- dev-support/test-patch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-support/test-patch.sh b/dev-support/test-patch.sh index 561b0c8..31aa27e 100755 --- a/dev-support/test-patch.sh +++ b/dev-support/test-patch.sh @@ -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 -- 2.3.2