Skip to content

Commit ba7824d

Browse files
committed
The new repo can have uppercase characers
1 parent 29b9932 commit ba7824d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

management_instance/runbooks/shared_scripts/fork_repo_github.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ def ensure_git_exists():
308308
cac_org = parser.git_organization.strip()
309309
template_repo = parser.template_repo_name.strip()
310310
new_repo_custom_prefix = re.sub('[^a-zA-Z0-9]', '_', parser.new_repo_name_prefix.strip())
311-
tenant_name_sanitized = re.sub('[^a-zA-Z0-9]', '_', parser.tenant_name.lower().strip())
312-
project_name_sanitized = re.sub('[^a-zA-Z0-9]', '_', parser.new_project_name.lower().strip())
311+
tenant_name_sanitized = re.sub('[^a-zA-Z0-9]', '_', parser.tenant_name.strip())
312+
project_name_sanitized = re.sub('[^a-zA-Z0-9]', '_', parser.new_project_name.strip())
313313

314314
# The new repo is prefixed either with the custom prefix or the tenant name if no custom prefix is defined
315315
new_repo_prefix = new_repo_custom_prefix if len(new_repo_custom_prefix) != 0 else tenant_name_sanitized

0 commit comments

Comments
 (0)