diff options
-rw-r--r-- | app/processors/push_processor.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/processors/push_processor.rb b/app/processors/push_processor.rb index c393746..99144c6 100644 --- a/app/processors/push_processor.rb +++ b/app/processors/push_processor.rb @@ -29,9 +29,11 @@ class PushProcessor include Patchwork include Emailer - PUSH_EVENT_GIT_OUTPUT_SEPARATOR = "\t" - PUSH_EVENT_GIT_OUTPUT_SEPARATOR_ESCAPED = "\\\t" - GIT_PRETTY_FORMAT = "format:#{['%H','%cn <%ce>','%at','%s','%an'].join(PUSH_EVENT_GIT_OUTPUT_SEPARATOR)}" + unless const_defined? :GIT_PRETTY_FORMAT + PUSH_EVENT_GIT_OUTPUT_SEPARATOR = "\t" + PUSH_EVENT_GIT_OUTPUT_SEPARATOR_ESCAPED = "\\\t" + GIT_PRETTY_FORMAT = "format:#{['%H','%cn <%ce>','%at','%s','%an'].join(PUSH_EVENT_GIT_OUTPUT_SEPARATOR)}" + end def on_message(message) load_message(message) |