|
|
@ -221,7 +221,7 @@ class SubjectsController < ApplicationController
|
|
|
|
# 添加合作者
|
|
|
|
# 添加合作者
|
|
|
|
@shixun.shixun_members.create!(user_id: current_user.id, role: 1)
|
|
|
|
@shixun.shixun_members.create!(user_id: current_user.id, role: 1)
|
|
|
|
# 创建长字段
|
|
|
|
# 创建长字段
|
|
|
|
@shixun.shixun_info.create!(description: "")
|
|
|
|
ShixunInfo.create!(shixun_id: @shixun.id)
|
|
|
|
# 创建版本库
|
|
|
|
# 创建版本库
|
|
|
|
repo_path = repo_namespace(current_user.login, identifier)
|
|
|
|
repo_path = repo_namespace(current_user.login, identifier)
|
|
|
|
GitService.add_repository(repo_path: repo_path)
|
|
|
|
GitService.add_repository(repo_path: repo_path)
|
|
|
|