Skip to content

gitserver: Add MigrateFrom attribute to support repo migration

Warren Gifford requested to merge ig/gitserver-migratefrom into main

Created by: indradhanush

Fixes #26490 (closed).

In this commit, by adding MigrateFrom to protocol.RepoUpdateRequest and server.cloneOptions.RepoUpdateRequest, we are enabling gitserver to be able to distinguish between two types of clone requests:

  1. Regular repo clones (the current norm)

  2. A migration based repo clone - where we clone the repo from another gitserver instead of the upstream repo URL of the external service.

No tests at this point. A subsequent PR for #26491 (closed) should have some once this functionality is consumed.

Merge request reports

Loading