Skip to content

WIP: Proof of concept to rewrite how we clone sources

Kamil Trzciński requested to merge rework-git-init into master

What does this MR do?

Instead of doing:

  1. git clone or git fetch,

This does:

  1. rm -rf /project/dir # if git clone strategy,
  2. git init /project/dir,
  3. git remote add origin project-url,
  4. git fetch.

Why was this MR needed?

Are there points in the code the reviewer needs to double check?

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Added tests for this feature/bug
  • In case of conflicts with master - branch was rebased

What are the relevant issue numbers?

Resolves Runner side of things for https://gitlab.com/gitlab-org/gitlab-ce/issues/55013

Edited by Kamil Trzciński

Merge request reports