Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-03 23:09:18 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-03 23:09:18 +0400
commit39ba934c0a65f571214998e056e925b61f389360 (patch)
treea1da1af6df76e1d49feffd48a6247ced3abd5684 /app/models/commit.rb
parente6c0673ef1108a93928c4d88ba273e12616b836b (diff)
REpostiry, Team models
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 07c5fbd7183..32d942a9e47 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -83,8 +83,8 @@ class Commit
return result unless from && to
- first = project.commit(to.try(:strip))
- last = project.commit(from.try(:strip))
+ first = project.repository.commit(to.try(:strip))
+ last = project.repository.commit(from.try(:strip))
if first && last
result[:same] = (first.id == last.id)