Skip to content

Commit

Permalink
Do not add an excessive space in the pre tag commit message if no pre…
Browse files Browse the repository at this point in the history
… commit text is set
  • Loading branch information
Vampire committed Dec 3, 2023
1 parent af4bf46 commit f481d3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f481d3c

Please sign in to comment.