Flipping commit ids in commits_between, fixes #513

This commit is contained in:
Koen Punt 2012-12-20 13:31:09 +01:00
parent 8826077471
commit a09d938215

View file

@ -92,7 +92,7 @@ class Commit
older = commits.last older = commits.last
result[:same] = (younger.id == older.id) result[:same] = (younger.id == older.id)
result[:commits] = project.repo.commits_between(younger.id, older.id).map {|c| Commit.new(c)} result[:commits] = project.repo.commits_between(older.id, younger.id).map {|c| Commit.new(c)}
result[:diffs] = project.repo.diff(younger.id, older.id) rescue [] result[:diffs] = project.repo.diff(younger.id, older.id) rescue []
result[:commit] = Commit.new(older) result[:commit] = Commit.new(older)
end end