Browse Source

merge

pull/317/head
qyzh 4 years ago
parent
commit
13263a44e4
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      LICENSE
  2. +1
    -0
      app/controllers/compare_controller.rb

+ 1
- 1
LICENSE View File

@@ -121,4 +121,4 @@ You may obtain a copy of Mulan PSL v2 at:
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
See the Mulan PSL v2 for more details.

+ 1
- 0
app/controllers/compare_controller.rb View File

@@ -29,6 +29,7 @@ class CompareController < ApplicationController
# if @compare_result["Commits"].blank? && @compare_result["Diff"].blank?
# return -2, "分支内容相同,无需创建合并请求"
# end
puts "``````````", @base, @head
if @base == @head
return -2, "请选择不同分支"
end


Loading…
Cancel
Save