Sourcegraph fails to fetch/update gitolite repos that have @ in their name
Created by: aisbaa
- Sourcegraph version: 3.26
Steps to reproduce:
For repos that contain @
symbol in their name Sourcegraph adds ?
before @
symbol when fetching.
- Suspected code https://sourcegraph.com/github.com/sourcegraph/sourcegraph/-/blob/internal/vcs/url.go#L80-107
- Go playground example https://play.golang.org/p/f5fn4p64LLn
- Regex playground https://regex101.com/r/DAuCaS/1
Expected behavior:
Sourcegraph should no add ?
before @
to repo name when fetching from gitolite.