Add trailing '/' for parsing Depends-On Gerrit message
Change-Id: Iaff8a7e2741628be9bf60b93b8ea4c491f717305
diff --git a/src/com/mirantis/mk/Gerrit.groovy b/src/com/mirantis/mk/Gerrit.groovy
index e69c189..7c19875 100644
--- a/src/com/mirantis/mk/Gerrit.groovy
+++ b/src/com/mirantis/mk/Gerrit.groovy
@@ -294,7 +294,7 @@
LinkedHashMap getDependentPatches(LinkedHashMap changeInfo) {
def dependentPatches = [:]
def currentChange = getGerritChange(changeInfo.gerritName, changeInfo.gerritHost, changeInfo.gerritChangeNumber, changeInfo.credentialsId, true)
- def dependentCommits = currentChange.commitMessage.tokenize('\n').findAll { it ==~ /Depends-On: \b[^ ]+\b/ }
+ def dependentCommits = currentChange.commitMessage.tokenize('\n').findAll { it ==~ /Depends-On: \b[^ ]+\b(\/)?/ }
if (dependentCommits) {
dependentCommits.each { commit ->
def patchLink = commit.tokenize(' ')[1]