YETUS-97. branch detection cut bug

Signed-off-by: Allen Wittenauer <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/0820d2ea
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/0820d2ea
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/0820d2ea

Branch: refs/heads/YETUS-83
Commit: 0820d2ea3b0745fe43e1b86900e1bd397def5303
Parents: d3c21d0
Author: Allen Wittenauer <[email protected]>
Authored: Mon Oct 19 11:12:08 2015 -0700
Committer: Allen Wittenauer <[email protected]>
Committed: Tue Oct 20 07:36:40 2015 -0700

----------------------------------------------------------------------
 dev-support/test-patch.d/jira.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/0820d2ea/dev-support/test-patch.d/jira.sh
----------------------------------------------------------------------
diff --git a/dev-support/test-patch.d/jira.sh b/dev-support/test-patch.d/jira.sh
index 59baf0f..1c554f1 100755
--- a/dev-support/test-patch.d/jira.sh
+++ b/dev-support/test-patch.d/jira.sh
@@ -214,7 +214,7 @@ function jira_determine_branch
     count="${PATCH_BRANCH//[^.]}"
     total=${#count}
     ((total = total + 3 ))
-    until [[ ${total} -lt 2 ]]; do
+    until [[ ${total} -lt 3 ]]; do
       PATCH_BRANCH=$(echo "${patchnamechunk}" | cut -f3-${total} -d.)
       yetus_debug "Determine branch: ISSUE[.##].branch = ${PATCH_BRANCH}"
       ((total=total-1))

Reply via email to