delete log messages

This commit is contained in:
txz 2016-07-01 20:25:58 +08:00
parent 134aa55e04
commit 61b5a100eb
1 changed files with 0 additions and 2 deletions

View File

@ -657,10 +657,8 @@ class ProjectsController < ApplicationController
params[:project][:hidden_repo] == "on" ? @project.hidden_repo = 1 : @project.hidden_repo = 0
# 更新公开私有时同步gitlab公开私有
if !@project.gpid.nil? && @project.is_public != (params[:project][:is_public] == "on" ? 1 : 0)
logger.info("########################=>#{params[:project][:is_public]}")
g = Gitlab.client
params[:project][:is_public] == "on" ? g.edit_project(@project.gpid, 20, params[:branch]) : g.edit_project(@project.gpid, 0, params[:branch])
logger.info("88888888888888888888888=>#{params[:project][:is_public] == "on"}")
end
# end
if validate_parent_id && @project.save