Skip to content

Commit

Permalink
Adding space between message prefix and message in commit
Browse files Browse the repository at this point in the history
  • Loading branch information
RastislavGraus committed May 18, 2021
1 parent 35e4fbc commit 3510dab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ protected void gitCommit(final String message) throws MojoFailureException,
protected void gitCommit(String message, Map<String, String> messageProperties)
throws MojoFailureException, CommandLineException {
if (StringUtils.isNotBlank(commitMessagePrefix)) {
message = commitMessagePrefix + message;
message = commitMessagePrefix + " " + message;
}

message = replaceProperties(message, messageProperties);
Expand Down Expand Up @@ -731,7 +731,7 @@ protected void gitMerge(final String branchName, boolean rebase, boolean noff, b
String msg = "";
if (StringUtils.isNotBlank(message)) {
if (StringUtils.isNotBlank(commitMessagePrefix)) {
message = commitMessagePrefix + message;
message = commitMessagePrefix + " " + message;
}

msgParam = "-m";
Expand Down

0 comments on commit 3510dab

Please sign in to comment.