Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2013-02-24 05:20:53 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2013-02-24 05:20:53 (GMT)
commitcfd98c246af5dde90c0ed242bf27ce3b60c9c208 (patch)
treec3111579539783a660ec2af0724bc9d04bd6b027
parent32cb55dcf074bd552c7fca1cb2f1463e171b6bf0 (diff)
Suppress minor warning
-rw-r--r--app/processors/push_processor.rb8
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)