Change Compare

dev_local_lzdx
sylor_huang@126.com 4 years ago
parent 378bd46513
commit 2edbbeccaa

@ -160,6 +160,8 @@ class PullRequestsController < ApplicationController
git_sourse_commit_id = @g.get_branch_commit_id(@project.gpid, git_source_tree, source_branch) git_sourse_commit_id = @g.get_branch_commit_id(@project.gpid, git_source_tree, source_branch)
git_target_commit_id = @g.get_branch_commit_id(@project.gpid, git_source_tree, target_branch) git_target_commit_id = @g.get_branch_commit_id(@project.gpid, git_source_tree, target_branch)
end end
Rails.logger.info("=========git_sourse_commit_id========#{git_sourse_commit_id}")
Rails.logger.info("=========git_target_commit_id========#{git_target_commit_id}")
status = (git_sourse_commit_id.try(:commit_id) == git_target_commit_id.try(:commit_id) ? false : true) status = (git_sourse_commit_id.try(:commit_id) == git_target_commit_id.try(:commit_id) ? false : true)
end end

Loading…
Cancel
Save