Revert "[refs #579] save additional info for pull inline comments"
This reverts commit 0de497c30f15720ae3b2f31c19e7ed2fdc390ad2. Conflicts: app/controllers/projects/comments_controller.rb
This commit is contained in:
parent
17e7faff3d
commit
e7cd5f008a
|
@ -65,7 +65,6 @@ class Projects::CommentsController < Projects::BaseController
|
|||
if @commentable.class == Issue && pull = @commentable.pull_request
|
||||
repo = Grit::Repo.new(pull.path)
|
||||
to_commit, from_commit = pull.common_ancestor, repo.commits(pull.head_branch).first
|
||||
@comment.data[:to_commit], @comment.data[:from_commit] = to_commit, from_commit
|
||||
|
||||
diff = pull.diff repo, to_commit, from_commit
|
||||
diff_path = diff.select {|d| d.a_path == params[:path]}
|
||||
|
|
Loading…
Reference in New Issue