diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-21 16:09:15 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-24 13:29:36 +0300 |
commit | 84a1590252c63c710bceaa7a394799cdc5109505 (patch) | |
tree | 12d9b499acad48dc9420d095803705093d2b135d /app/workers/irker_worker.rb | |
parent | b0ed2ff1a69df384a1cb9a184c0528bec1986827 (diff) |
Let commit model know about its project.
Diffstat (limited to 'app/workers/irker_worker.rb')
-rw-r--r-- | app/workers/irker_worker.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/workers/irker_worker.rb b/app/workers/irker_worker.rb index 8b50f423984..84a54656df2 100644 --- a/app/workers/irker_worker.rb +++ b/app/workers/irker_worker.rb @@ -137,8 +137,7 @@ class IrkerWorker end def commit_from_id(project, id) - commit = Gitlab::Git::Commit.find(project.repository, id) - Commit.new(commit) + project.commit(id) end def files_count(commit) |