Commit a09d93821521e8908c46a418471969999ab8a312
1 parent
88260774
Exists in
master
and in
4 other branches
Flipping commit ids in commits_between, fixes #513
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/commit.rb
... | ... | @@ -92,7 +92,7 @@ class Commit |
92 | 92 | older = commits.last |
93 | 93 | |
94 | 94 | result[:same] = (younger.id == older.id) |
95 | - result[:commits] = project.repo.commits_between(younger.id, older.id).map {|c| Commit.new(c)} | |
95 | + result[:commits] = project.repo.commits_between(older.id, younger.id).map {|c| Commit.new(c)} | |
96 | 96 | result[:diffs] = project.repo.diff(younger.id, older.id) rescue [] |
97 | 97 | result[:commit] = Commit.new(older) |
98 | 98 | end | ... | ... |