@@ -116,9 +116,9 @@ def init_argparse():
116
116
'ForkGithubRepo.Git.Url.NewRepoNamePrefix' ) or get_octopusvariable_quiet (
117
117
'Git.Url.NewRepoNamePrefix' ))
118
118
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' )))
122
122
parser .add_argument ('--mainline-branch' ,
123
123
action = 'store' ,
124
124
default = get_octopusvariable_quiet (
@@ -165,8 +165,8 @@ def generate_auth_header(token):
165
165
166
166
def verify_template_repo (token , cac_org , template_repo ):
167
167
# Attempt to view the template repo
168
+ url = 'https://api.github.com/repos/' + cac_org + '/' + template_repo
168
169
try :
169
- url = 'https://api.github.com/repos/' + cac_org + '/' + template_repo
170
170
headers = {
171
171
'Accept' : 'application/vnd.github+json' ,
172
172
'Authorization' : 'Bearer ' + token ,
0 commit comments