Skip to content

Commit 990e880

Browse files
VampireHillkorn
authored andcommitted
Do not add an excessive space in the pre tag commit message if no pre commit text is set
1 parent af4bf46 commit 990e880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/net/researchgate/release/tasks/PreTagCommit.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class PreTagCommit extends BaseReleaseTask {
2222
if (projectAttributes.usesSnapshot || projectAttributes.versionModified || projectAttributes.propertiesFileCreated) {
2323
// should only be committed if the project was using a snapshot version.
2424
String message = extension.preTagCommitMessage.get() + " '${tagName()}'."
25-
if (extension.preCommitText) {
25+
if (extension.preCommitText.get()) {
2626
message = "${extension.preCommitText.get()} ${message}"
2727
}
2828
if (projectAttributes.propertiesFileCreated) {

0 commit comments

Comments
 (0)