[refs #90] fixed error by 24fd99b2d5cab
This commit is contained in:
parent
e15bf13c4f
commit
c6f45956cc
|
@ -128,7 +128,7 @@ class Projects::PullRequestsController < Projects::BaseController
|
|||
end
|
||||
|
||||
def load_diff_commits_data
|
||||
@commits = @pull.repo.commits_between(@pull.from_commit, @pull.to_commit)
|
||||
@commits = @pull.repo.commits_between(@pull.to_commit, @pull.from_commit)
|
||||
@total_commits = @commits.count
|
||||
@commits = @commits.last(100)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
- commit_id = pull_diff.deleted_file ? @base_commit.id : @head_commit.id
|
||||
- commit_id = pull_diff.deleted_file ? @pull.to_commit.id : @pull.from_commit.id
|
||||
.file
|
||||
%a{:name => "diff-#{pull_diff_counter}"}
|
||||
.top
|
||||
|
|
Loading…
Reference in New Issue