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:
authorJames Lopez <james@jameslopez.es>2016-03-29 17:10:35 +0300
committerJames Lopez <james@jameslopez.es>2016-03-29 17:10:35 +0300
commitc93570d8fb439a8a60a204bcc41e5e8a720730e4 (patch)
tree9a3e67b2690de209e96889725d1dccc771d81480 /lib/gitlab/fogbugz_import
parent28df200c66f88348e0c995fc8023b6dd78b9bf9b (diff)
fixing a few issues after testing imports
Diffstat (limited to 'lib/gitlab/fogbugz_import')
-rw-r--r--lib/gitlab/fogbugz_import/project_creator.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/gitlab/fogbugz_import/project_creator.rb b/lib/gitlab/fogbugz_import/project_creator.rb
index 73d6272720a..15914aea3b9 100644
--- a/lib/gitlab/fogbugz_import/project_creator.rb
+++ b/lib/gitlab/fogbugz_import/project_creator.rb
@@ -24,13 +24,10 @@ module Gitlab
import_url: Project::UNKNOWN_IMPORT_URL
).execute
- project.create_import_data(
- credentials: {
- 'repo' => repo.raw_data,
- 'user_map' => user_map,
- 'fb_session' => fb_session
- }
- )
+ import_data = project.import_data
+ import_data.credentials.merge!('fb_session' => fb_session)
+ import_data.data = { 'repo' => repo.raw_data, 'user_map' => user_map }
+ import_data.save
project
end