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
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-07 12:15:43 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-07 12:15:43 +0400
commit57ce7124fc958c70dfc366075a62ad19a4195177 (patch)
tree378e22cd5c0bd81233f53cbeb3be05ca5e0b932f /app
parent94befdd502e619313534664393f4c72a24c9ebec (diff)
Fixed invalid commit show if git history broken
Diffstat (limited to 'app')
-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