diff options
author | Joe Robinson <joe@lc8n.com> | 2015-12-11 00:46:06 +0000 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2015-12-11 00:46:06 +0000 |
commit | 8950c5e28033b0abdf65c67a8c5bf0de8a833d63 (patch) | |
tree | 51a96f6bb973a46d2d335bb40949f85999fff304 /src | |
parent | 71c4e0a0ca19e5437c382a970d96fb94c6c9abca (diff) |
Trim commit message to avoid newlines
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/uk/co/blatech/blaears/controllers/GitPushController.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/uk/co/blatech/blaears/controllers/GitPushController.java b/src/main/java/uk/co/blatech/blaears/controllers/GitPushController.java index 825ce8f..eb5ff74 100644 --- a/src/main/java/uk/co/blatech/blaears/controllers/GitPushController.java +++ b/src/main/java/uk/co/blatech/blaears/controllers/GitPushController.java @@ -29,8 +29,9 @@ public class GitPushController { if (StringUtils.isNotEmpty(commitMsg)) { commitMsg += ", "; } - commitMsg += commit.getMessage(); + commitMsg += commit.getMessage().trim(); } + log.info(commitMsg); Runtime.getRuntime().exec(new String[]{"/bin/bash", "-c", "echo theblueroom beep | bash /home/smsd/msgrelay.bash "}); |