diff options
author | Stan Hu <stanhu@gmail.com> | 2016-11-11 16:10:12 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-11-21 16:47:28 -0800 |
commit | 3b9d1c0f5d2996b946ab71704995b752c0ff8f60 (patch) | |
tree | 25266337c46c9080e8e230122299c9d246301bd3 /lib/bitbucket | |
parent | b25ebfe67b0e5448e9625e7a5c469ab41a4b7059 (diff) | |
download | gitlab-ce-3b9d1c0f5d2996b946ab71704995b752c0ff8f60.tar.gz |
Fix refresh to lazily load connection
Diffstat (limited to 'lib/bitbucket')
-rw-r--r-- | lib/bitbucket/connection.rb | 3 |
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 |