From 573f01e991cea3f3839f5efd02ae84dc1cd98365 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 9 Aug 2023 16:56:30 +0100 Subject: [PATCH] Polish Bomr's output See gh-35296 --- .../boot/build/bom/bomr/UpgradeDependencies.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/UpgradeDependencies.java b/buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/UpgradeDependencies.java index 1b5d1a3db1..adc91e88d7 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/UpgradeDependencies.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/UpgradeDependencies.java @@ -143,7 +143,7 @@ public abstract class UpgradeDependencies extends DefaultTask { if (new ProcessBuilder().command("git", "commit", "-m", commitMessage).start().waitFor() != 0) { throw new IllegalStateException("git commit failed"); } - System.out.println(" Commit: " + commitMessage.substring(commitMessage.indexOf('\n'))); + System.out.println(" Commit: " + commitMessage.substring(0, commitMessage.indexOf('\n'))); } catch (IOException ex) { throw new TaskExecutionException(this, ex);