forked from Gitlink/forgeplus
fixed 项目没有master分支时,创建发行版错误
This commit is contained in:
parent
e09dbfeba5
commit
395c3fd1fc
|
@ -157,7 +157,7 @@ class VersionReleasesController < ApplicationController
|
|||
name: params[:name],
|
||||
prerelease: params[:prerelease] || false,
|
||||
tag_name: params[:tag_name],
|
||||
target_commitish: params[:target_commitish] || "master" #分支
|
||||
target_commitish: params[:target_commitish] || @project.default_branch #分支
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue