Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-11-12 03:10:12 +0300
committerStan Hu <stanhu@gmail.com>2016-11-22 03:47:28 +0300
commit3b9d1c0f5d2996b946ab71704995b752c0ff8f60 (patch)
tree25266337c46c9080e8e230122299c9d246301bd3 /lib/bitbucket
parentb25ebfe67b0e5448e9625e7a5c469ab41a4b7059 (diff)
Fix refresh to lazily load connection
Diffstat (limited to 'lib/bitbucket')
-rw-r--r--lib/bitbucket/connection.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bitbucket/connection.rb b/lib/bitbucket/connection.rb
index e9cbf36a44b..201e7e3b808 100644
--- a/lib/bitbucket/connection.rb
+++ b/lib/bitbucket/connection.rb
@@ -45,8 +45,7 @@ module Bitbucket
@expires_at = response.expires_at
@expires_in = response.expires_in
@refresh_token = response.refresh_token
-
- @connection = OAuth2::AccessToken.new(@client, @token, refresh_token: @refresh_token, expires_at: @expires_at, expires_in: @expires_in)
+ @connection = nil
end
private