Change compare

dev_local_lzdx
sylor_huang@126.com 4 years ago
parent 789563740e
commit b288774528

@ -161,7 +161,11 @@ class PullRequestsController < ApplicationController
git_sourse_commit_id = @g.commits(@project.gpid, :ref_name => source_branch).first.try(:id)
git_target_commit_id = @g.commits(@project.gpid, :ref_name => target_branch).first.try(:id)
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 == git_target_commit_id ? false : true)
Rails.logger.info("==========status======#{status}")
status
end
# @project_menu_type 为了控制base顶部导航

Loading…
Cancel
Save