diff options
author | Saša Živkov <sasa.zivkov@sap.com> | 2018-04-20 10:41:54 +0200 |
---|---|---|
committer | Nguyen Tuan Khang Phan <nguyen.tuan.khang.phan@ericsson.com> | 2020-02-21 21:07:03 +0000 |
commit | a89a1110aada138b1ec2b49f438b4e402d9708e2 (patch) | |
tree | feea22f280925b7d8b01bf87ec7b093447a8f9e2 | |
parent | deee2943f95ece5d77fc1959c9284808937e609f (diff) |
Append LF to the json string of persisted replication event
Change-Id: I83ed3f37071125018bf23f6dcd137ef819ef3559
(cherry picked from commit 5e91925cfd391898e8e33fd149b9e1a115dafee4)
-rw-r--r-- | src/main/java/com/googlesource/gerrit/plugins/replication/EventsStorage.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/EventsStorage.java b/src/main/java/com/googlesource/gerrit/plugins/replication/EventsStorage.java index dc2e6e5..36d9ce0 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/EventsStorage.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/EventsStorage.java @@ -54,7 +54,7 @@ public class EventsStorage { r.project = project; r.ref = ref; - String json = GSON.toJson(r); + String json = GSON.toJson(r) + "\n"; String eventKey = sha1(json).name(); Path file = refUpdates().resolve(eventKey); |