Commit a09d9382 authored by Koen Punt's avatar Koen Punt

Flipping commit ids in commits_between, fixes #513

parent 88260774
...@@ -92,7 +92,7 @@ class Commit ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment