Polish Bomr's output

See gh-35296
pull/37210/head
Andy Wilkinson 1 year ago
parent 51bff73fe5
commit 573f01e991

@ -143,7 +143,7 @@ public abstract class UpgradeDependencies extends DefaultTask {
if (new ProcessBuilder().command("git", "commit", "-m", commitMessage).start().waitFor() != 0) { if (new ProcessBuilder().command("git", "commit", "-m", commitMessage).start().waitFor() != 0) {
throw new IllegalStateException("git commit failed"); 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) { catch (IOException ex) {
throw new TaskExecutionException(this, ex); throw new TaskExecutionException(this, ex);

Loading…
Cancel
Save