diff options
author | Koen Punt <koen@koenpunt.nl> | 2012-12-20 13:31:09 +0100 |
---|---|---|
committer | Koen Punt <koen@koenpunt.nl> | 2012-12-20 13:31:09 +0100 |
commit | a09d93821521e8908c46a418471969999ab8a312 (patch) | |
tree | ee4f2a95fa314b3f860ae97f85f07f67972d1206 | |
parent | 8826077471d667680ee0ed9f86a41c4b30429e5c (diff) | |
download | gitlab-ce-a09d93821521e8908c46a418471969999ab8a312.tar.gz |
Flipping commit ids in commits_between, fixes #513
-rw-r--r-- | app/models/commit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 200c915a335..aa91bd546bd 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -92,7 +92,7 @@ class Commit older = commits.last 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[:commit] = Commit.new(older) end |