summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/commit.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 1fbda6f6acc..9e7fde9503d 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -57,7 +57,6 @@ class Commit
@raw = raw_commit
@project = project
- @statuses = {}
end
def id
@@ -231,6 +230,8 @@ class Commit
end
def status(ref = nil)
+ @statuses ||= {}
+
if @statuses.key?(ref)
@statuses[ref]
elsif ref