Conversation: Repository#with_repo_branch_commit
Stages:
RPC Endpoints:
Repository#with_repo_branch_commit
Known Client Routes:
- Known client endpoints
Blocks https://gitlab.com/gitlab-org/gitlab-ce/issues/36284
Creating an MR from a fork is slow and can time out largely because of
Repository#fetch_ref
(called fromRepository#with_repo_branch_commit
)
And @bkc points out in https://gitlab.com/gitlab-org/gitaly/issues/387#note_38377340
@andrewn That would be
Repository#fetch_ref
, this isRepository#fetch_remote
(They're not using the same git-call)🤔 And that one seems to have cross-storage issues as well, since it works on paths and not names😞
def fetch_ref(source_path, source_ref, target_ref)
args = %W(fetch --no-tags -f #{source_path} #{source_ref}:#{target_ref})
Edited by Andrew Newdigate