summaryrefslogtreecommitdiff
path: root/lib/bitbucket/client.rb
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2016-12-15 14:19:28 +0200
committerValery Sizov <valery@gitlab.com>2016-12-15 14:19:28 +0200
commit26628fb91a89bbe4998633eec00d2bd76cfb95c0 (patch)
tree561248da78a0d12ca64f528c94d5ee16d88cdb94 /lib/bitbucket/client.rb
parent076cdd204459496d7cdd14b86838c2c2c7875cd4 (diff)
downloadgitlab-ce-26628fb91a89bbe4998633eec00d2bd76cfb95c0.tar.gz
BB importer: Fixed bug with putting expired token to a project.clone_url
Diffstat (limited to 'lib/bitbucket/client.rb')
-rw-r--r--lib/bitbucket/client.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bitbucket/client.rb b/lib/bitbucket/client.rb
index 5c2ef2a4509..f8ee7e0f9ae 100644
--- a/lib/bitbucket/client.rb
+++ b/lib/bitbucket/client.rb
@@ -1,5 +1,7 @@
module Bitbucket
class Client
+ attr_reader :connection
+
def initialize(options = {})
@connection = Connection.new(options)
end
@@ -48,8 +50,6 @@ module Bitbucket
private
- attr_reader :connection
-
def get_collection(path, type)
paginator = Paginator.new(connection, path, type)
Collection.new(paginator)