Skip to content

gitserver: support cloning repos with a customFetchCmd

Administrator requested to merge core/custom-fetch-clone into master

Created by: keegancsmith

The existing customer which uses customFetchCmd manually cloned the repository into gitserver, so the support for customFetchCmd previously didn't take into account the need to clone.

We only know how to fetch these repos, so instead of calling "git clone" we instead init an empty repository and then run fetch. I am unsure the wider implications of missing a remote URL in the git config / etc. However, the testing I did should unblock the customer relying on the need to clone.

Fixes https://github.com/sourcegraph/sourcegraph/issues/8875

Merge request reports

Loading