diff options
author | James Lopez <james@jameslopez.es> | 2016-04-07 16:00:20 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-04-07 16:00:20 +0300 |
commit | 15044e7d857138b31199b796f02a81f0c29c643f (patch) | |
tree | a366d69c9f3a0679f14ebfeeb45cf0d249db2411 /lib/gitlab/bitbucket_import/project_creator.rb | |
parent | e8b7e37c6de2c541510ff804730e3d9946857b9e (diff) |
refactored a few things based on MR feedback
Diffstat (limited to 'lib/gitlab/bitbucket_import/project_creator.rb')
-rw-r--r-- | lib/gitlab/bitbucket_import/project_creator.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/gitlab/bitbucket_import/project_creator.rb b/lib/gitlab/bitbucket_import/project_creator.rb index 109010cb962..65b62b2b816 100644 --- a/lib/gitlab/bitbucket_import/project_creator.rb +++ b/lib/gitlab/bitbucket_import/project_creator.rb @@ -23,10 +23,7 @@ module Gitlab import_url: "ssh://git@bitbucket.org/#{repo["owner"]}/#{repo["slug"]}.git", ).execute - import_data = project.import_data - # merge! with a bang doesn't work here - import_data.credentials = import_data.credentials.merge(bb_session: session_data) - import_data.save + project.update_import_data(credentials: { bb_session: session_data }) project end |