@@ -118,7 +118,7 @@ def init_argparse():
118
118
parser .add_argument ('--template-repo-name' , action = 'store' ,
119
119
default = get_octopusvariable_quiet (
120
120
'ForkGithubRepo.Original.Project.Name' ) or
121
- re .sub ('[^a-zA-Z0-9]' , '_' , get_octopusvariable_quiet ('Octopus.Project.Name' )))
121
+ re .sub ('[^a-zA-Z0-9- ]' , '_' , get_octopusvariable_quiet ('Octopus.Project.Name' )))
122
122
parser .add_argument ('--mainline-branch' ,
123
123
action = 'store' ,
124
124
default = get_octopusvariable_quiet (
@@ -308,9 +308,9 @@ def ensure_git_exists():
308
308
309
309
cac_org = parser .git_organization .strip ()
310
310
template_repo = parser .template_repo_name .strip ()
311
- new_repo_custom_prefix = re .sub ('[^a-zA-Z0-9]' , '_' , parser .new_repo_name_prefix .strip ())
312
- tenant_name_sanitized = re .sub ('[^a-zA-Z0-9]' , '_' , parser .tenant_name .strip ())
313
- project_name_sanitized = re .sub ('[^a-zA-Z0-9]' , '_' ,
311
+ new_repo_custom_prefix = re .sub ('[^a-zA-Z0-9- ]' , '_' , parser .new_repo_name_prefix .strip ())
312
+ tenant_name_sanitized = re .sub ('[^a-zA-Z0-9- ]' , '_' , parser .tenant_name .strip ())
313
+ project_name_sanitized = re .sub ('[^a-zA-Z0-9- ]' , '_' ,
314
314
parser .new_project_name .strip () if parser .new_project_name .strip () else template_repo )
315
315
316
316
# The new repo is prefixed either with the custom prefix or the tenant name if no custom prefix is defined
0 commit comments