Skip to content

Fallback to git clone strategy if `git init` with fetch strategy fails

What does this MR do?

If git init fails, the project directory is removed and git init is retried. Analogous to the clone strategy.

Why was this MR needed?

See #4298 (closed). If the git repository is in an invalid state the fetch can fail.

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?

Closes #4298 (closed)

Edited by 🤖 GitLab Bot 🤖

Merge request reports