summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-08-07 01:02:01 -0700
committerStan Hu <stanhu@gmail.com>2015-08-07 07:07:08 -0700
commitd7accda1ae42fe2036060aaf3ef4447e8f352e35 (patch)
tree0079ec7347a2a68555bc625a53bfe66da44684f9 /lib
parenta1e6fc157f70f1fe5e8d7b8cc9a34d1ff108b7d8 (diff)
downloadgitlab-ce-d7accda1ae42fe2036060aaf3ef4447e8f352e35.tar.gz
Show incompatible projects in Bitbucket import status
See #1871
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/bitbucket_import/client.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/bitbucket_import/client.rb b/lib/gitlab/bitbucket_import/client.rb
index 778b76f6890..aec44b8c87b 100644
--- a/lib/gitlab/bitbucket_import/client.rb
+++ b/lib/gitlab/bitbucket_import/client.rb
@@ -87,6 +87,10 @@ module Gitlab
JSON.parse(get("/api/1.0/user/repositories").body).select { |repo| repo["scm"] == "git" }
end
+ def incompatible_projects
+ JSON.parse(get("/api/1.0/user/repositories").body).reject { |repo| repo["scm"] == "git" }
+ end
+
private
def get(url)