From 2edbbeccaa66e5cef126ebe1b1426b0064684e0b Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Fri, 18 Sep 2020 10:48:52 +0800 Subject: [PATCH] Change Compare --- app/controllers/pull_requests_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/pull_requests_controller.rb b/app/controllers/pull_requests_controller.rb index 8b3e10fa..de154591 100644 --- a/app/controllers/pull_requests_controller.rb +++ b/app/controllers/pull_requests_controller.rb @@ -160,6 +160,8 @@ class PullRequestsController < ApplicationController 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) 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) end