CHANGELOG updated. Fixed MR bug. Logger improved

This commit is contained in:
Dmitriy Zaporozhets 2012-07-17 08:23:16 +03:00
parent 494cd02b38
commit 8803350023
4 changed files with 23 additions and 5 deletions

View file

@ -128,7 +128,7 @@ class MergeRequest < ActiveRecord::Base
def unmerged_diffs
commits = project.repo.commits_between(target_branch, source_branch).map {|c| Commit.new(c)}
diffs = project.repo.diff(commits.first.prev_commit.id, commits.last.id)
diffs = project.repo.diff(commits.first.prev_commit.id, commits.last.id) rescue []
end
def last_commit