Failing import Bitbucket repos with "-" in any place the path
According to doc and UI messages, there are some restrictions on repository path, specially regarding "-", "_", "." symbols. However, it seems that the Regex that check it have some problems. If the path have these symbols in ANY place, it raises an error.
Expected:
- create a repository in Bitbucket with a the name "REPO NAME", which will generate a path "REPO-NAME"
- create a new project on Gitlab
- select import from Bitbucket
- select the USERNAME/REPO-NAME repository, clicking in the *import *button
- correctly imports.
Happening:
- create a repository in Bitbucket with a the name "REPO NAME", which will generate a path "REPO-NAME"
- create a new project on Gitlab
- select import from Bitbucket
- select the USERNAME/REPO-NAME repository, clicking in the import button
- fail import, the error message being
Error saving project: Path can contain only letters, digits, '_', '-' and '.'. Cannot start with '-' or end in '.', '.git' or '.atom'.,Path can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom',Unable to save project. Error: Path can contain only letters, digits, '_', '-' and '.'. Cannot start with '-' or end in '.', '.git' or '.atom'., Path can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'