summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-07 00:15:43 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-07 00:15:43 -0800
commit57ce7124fc958c70dfc366075a62ad19a4195177 (patch)
tree378e22cd5c0bd81233f53cbeb3be05ca5e0b932f /app/models
parent94befdd502e619313534664393f4c72a24c9ebec (diff)
downloadgitlab-ce-57ce7124fc958c70dfc366075a62ad19a4195177.tar.gz
Fixed invalid commit show if git history broken
Diffstat (limited to 'app/models')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 5c1d7946d73..b7445db06c1 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -260,7 +260,7 @@ class Project < ActiveRecord::Base
def commit(commit_id = nil)
commit = if commit_id
- repo.commits(commit_id).first
+ repo.commit(commit_id)
else
repo.commits.first
end