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 authored and Hillkorn committed Jul 8, 2024
1 parent af4bf46 commit 990e880
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 990e880

Please sign in to comment.