Merge pull request #32 from Hazhzeng/release-16

Release 0.0.16
This commit is contained in:
Hanzhang Zeng (Roger) 2019-04-09 17:02:56 -07:00 коммит произвёл GitHub
Родитель 3e29984539 edecd49057
Коммит 0829837000
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -91,7 +91,11 @@ def git_push(remote_name, force=False):
raise GitOperationException(message=" ".join(command)) raise GitOperationException(message=" ".join(command))
def _sanitize_git_remote_name(organization_name, project_name, repository_name): def _sanitize_git_remote_name(organization_name, project_name, repository_name):
concatenated_remote_name = f"{organization_name}_{project_name}_{repository_name}" concatenated_remote_name = "{organization_name}_{project_name}_{repository_name}".format(
organization_name=organization_name,
project_name=project_name,
repository_name=repository_name
)
sanitized_remote_name = re.sub(r"[^A-Za-z0-9_-]|\s", "-", concatenated_remote_name) sanitized_remote_name = re.sub(r"[^A-Za-z0-9_-]|\s", "-", concatenated_remote_name)
return sanitized_remote_name return sanitized_remote_name