提交 a68a6201 编写于 作者: L Lin Jen-Shin

Don't pass source_branch if it doesn't exist

上级 d8fe2fac
......@@ -4,9 +4,10 @@ module CreatesCommit
def create_commit(service, success_path:, failure_path:, failure_view: nil, success_notice: nil)
set_commit_variables
source_branch = @ref if @repository.find_branch(@ref)
commit_params = @commit_params.merge(
source_project: @project,
source_branch: @ref,
source_branch: source_branch,
target_branch: @target_branch
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册