Skip to content

Fix bare repos for other(src-cli) code host type

Administrator requested to merge iv/other-codehost-fix-bare-repos into main

Created by: varsanojidan

When serving repos using src-cli, if the repo was of bare-repo type, sg couldn't clone it do to an invalid clone URL (had an extra .git at the end of the URL and name), this PR fixes that.

Fixes https://github.com/sourcegraph/customer/issues/1210

Test plan

Tested locally with both bare and non-bare repos being served up by src-cli, my local sg was able to clone both Added a unit test to cover bare repos

Merge request reports

Loading