From f481d3cd8e9c7e0bbefd89483b83b73b3f4700be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Sun, 3 Dec 2023 23:42:48 +0100 Subject: [PATCH] Do not add an excessive space in the pre tag commit message if no pre commit text is set --- .../groovy/net/researchgate/release/tasks/PreTagCommit.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/groovy/net/researchgate/release/tasks/PreTagCommit.groovy b/src/main/groovy/net/researchgate/release/tasks/PreTagCommit.groovy index af4b77aa..2329e3a0 100644 --- a/src/main/groovy/net/researchgate/release/tasks/PreTagCommit.groovy +++ b/src/main/groovy/net/researchgate/release/tasks/PreTagCommit.groovy @@ -22,7 +22,7 @@ class PreTagCommit extends BaseReleaseTask { if (projectAttributes.usesSnapshot || projectAttributes.versionModified || projectAttributes.propertiesFileCreated) { // should only be committed if the project was using a snapshot version. String message = extension.preTagCommitMessage.get() + " '${tagName()}'." - if (extension.preCommitText) { + if (extension.preCommitText.get()) { message = "${extension.preCommitText.get()} ${message}" } if (projectAttributes.propertiesFileCreated) {