Skip to content

Commit 85ae1e9

Browse files
committed
Dont escape the template repo name
1 parent 837e7ff commit 85ae1e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

management_instance/runbooks/shared_scripts/fork_repo_github.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ def init_argparse():
116116
'ForkGithubRepo.Git.Url.NewRepoNamePrefix') or get_octopusvariable_quiet(
117117
'Git.Url.NewRepoNamePrefix'))
118118
parser.add_argument('--template-repo-name', action='store',
119-
default=re.sub('[^a-zA-Z0-9]', '_', get_octopusvariable_quiet(
120-
'ForkGithubRepo.Original.Project.Name') or get_octopusvariable_quiet(
121-
'Octopus.Project.Name').lower()))
119+
default=get_octopusvariable_quiet(
120+
'ForkGithubRepo.Original.Project.Name') or
121+
re.sub('[^a-zA-Z0-9]', '_', get_octopusvariable_quiet('Octopus.Project.Name')))
122122
parser.add_argument('--mainline-branch',
123123
action='store',
124124
default=get_octopusvariable_quiet(
@@ -165,8 +165,8 @@ def generate_auth_header(token):
165165

166166
def verify_template_repo(token, cac_org, template_repo):
167167
# Attempt to view the template repo
168+
url = 'https://api.github.com/repos/' + cac_org + '/' + template_repo
168169
try:
169-
url = 'https://api.github.com/repos/' + cac_org + '/' + template_repo
170170
headers = {
171171
'Accept': 'application/vnd.github+json',
172172
'Authorization': 'Bearer ' + token,

0 commit comments

Comments
 (0)