summaryrefslogtreecommitdiff
path: root/lib/bitbucket/representation/repo.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bitbucket/representation/repo.rb')
-rw-r--r--lib/bitbucket/representation/repo.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bitbucket/representation/repo.rb b/lib/bitbucket/representation/repo.rb
index 423eff8f2a5..59b0fda8e14 100644
--- a/lib/bitbucket/representation/repo.rb
+++ b/lib/bitbucket/representation/repo.rb
@@ -23,7 +23,7 @@ module Bitbucket
url = raw['links']['clone'].find { |link| link['name'] == 'https' }.fetch('href')
if token.present?
- clone_url = URI::parse(url)
+ clone_url = URI.parse(url)
clone_url.user = "x-token-auth:#{token}"
clone_url.to_s
else