Skip to content

Accept Force option for UserCommitFiles to overwrite branch on commit

Patrick Bajao requested to merge 45035-force-commit into master

This MR updates UserCommitFiles RPC to accept a Force option. GitalyServer::OperationsService#user_commit_files and underlying code were modified to accept the force option.

When set to true and start_branch_name is set, the start branch's HEAD will be the parent of the new commit and the new commit will be the HEAD of the branch.

TODOs

  • Update gitalypb vendor and gem when already released

Issue: https://gitlab.com/gitlab-org/gitlab-ce/issues/45035

gitaly-proto MR: gitaly-proto!263 (merged)

gitlab-rails MR: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/25286

Edited by GitLab Release Tools Bot

Merge request reports