Skip to content

Commit

Permalink
don't invoke api to get clone URL
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanthorpe committed Aug 29, 2024
1 parent 5a37e61 commit 5579930
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,7 @@ class GithubRepositoryProvider extends RepositoryProvider {
/** {@inheritDoc} */
@Override
String getCloneUrl() {
Map response = invokeAndParseResponse( getEndpointUrl() )

def result = response.get('clone_url')
if( !result )
throw new IllegalStateException("Missing clone URL for: $project")

return result
return "${config.server}/${project}.git"
}

@Override
Expand Down

0 comments on commit 5579930

Please sign in to comment.