diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-03-07 00:15:43 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-03-07 00:15:43 -0800 |
commit | 57ce7124fc958c70dfc366075a62ad19a4195177 (patch) | |
tree | 378e22cd5c0bd81233f53cbeb3be05ca5e0b932f /app/models | |
parent | 94befdd502e619313534664393f4c72a24c9ebec (diff) | |
download | gitlab-ce-57ce7124fc958c70dfc366075a62ad19a4195177.tar.gz |
Fixed invalid commit show if git history broken
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project.rb | 2 |
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 |