File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -423,8 +423,8 @@ def get_github_repo_url(args, repository):
423423 if repository .get ('is_gist' ):
424424 if args .prefer_ssh :
425425 # The git_pull_url value is always https for gists, so we need to transform it to ssh form
426- repo_url = re .sub ('^https?:\/\/(.+)\/(.+)\.git$' , r'git@\1:\2.git' , repository ['git_pull_url' ])
427- repo_url = re .sub ('^git@gist\.' , 'git@' , repo_url ) # strip gist subdomain for better hostkey compatibility
426+ repo_url = re .sub (r '^https?:\/\/(.+)\/(.+)\.git$' , r'git@\1:\2.git' , repository ['git_pull_url' ])
427+ repo_url = re .sub (r '^git@gist\.' , 'git@' , repo_url ) # strip gist subdomain for better hostkey compatibility
428428 else :
429429 repo_url = repository ['git_pull_url' ]
430430 return repo_url
You can’t perform that action at this time.
0 commit comments