Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Repos that have .git in the name do not sync properly #35960

@billCaplan

Description

@billCaplan
  • Sourcegraph version: 3.30.4
  • Platform information: Kubernetes

Steps to reproduce:

  1. In a code host connection, include a repo that has .git in the name (In the actual repo name, not the file extension Ex: repo_name.git.git
  2. Save and try to sync repos

Expected behavior:

We are able to properly find and sync the repo.

Actual behavior:

It appears we strip the .git from the repo name when we save it, so instead of trying to sync repo_name.git, we just try to sync repo_name

From Gitserver:

Gitserver log:

t=2022-04-07T16:00:50+0000 lvl=warn msg="error cloning repo" repo=<repo name redacted, but does not include .git> <repo URL redacted, but does not include .git> err="get VCS syncer: get repository: repo not found:

If would like immediate help on this, please email support@sourcegraph.com (you can still create the issue, but there are not SLAs on issues like there are for support requests).

Metadata

Metadata

Assignees

Labels

bugAn error, flaw or fault that produces an incorrect or unexpected result, or behavior.team/sourceTickets under the purview of Source - the one Source to graph it all

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions