Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
6aeb753b
Commit
6aeb753b
authored
Apr 01, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix github import issues
parent
6d12d79d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/models/project.rb
app/models/project.rb
+1
-1
lib/gitlab/github_import/importer.rb
lib/gitlab/github_import/importer.rb
+1
-1
No files found.
app/models/project.rb
View file @
6aeb753b
...
@@ -418,7 +418,7 @@ class Project < ActiveRecord::Base
...
@@ -418,7 +418,7 @@ class Project < ActiveRecord::Base
def
create_or_update_import_data
(
credentials
)
def
create_or_update_import_data
(
credentials
)
project_import_data
=
import_data
||
build_import_data
project_import_data
=
import_data
||
build_import_data
project_import_data
.
credentials
||=
{}
project_import_data
.
credentials
||=
{}
project_import_data
.
credentials
.
merge!
(
credentials
)
project_import_data
.
credentials
=
project_import_data
.
credentials
.
merge
(
credentials
)
project_import_data
.
save
project_import_data
.
save
end
end
...
...
lib/gitlab/github_import/importer.rb
View file @
6aeb753b
...
@@ -8,7 +8,7 @@ module Gitlab
...
@@ -8,7 +8,7 @@ module Gitlab
def
initialize
(
project
)
def
initialize
(
project
)
@project
=
project
@project
=
project
if
import_data_credentials
if
import_data_credentials
@client
=
Client
.
new
(
import_data_credentials
[
'user'
])
@client
=
Client
.
new
(
import_data_credentials
[
:user
])
@formatter
=
Gitlab
::
ImportFormatter
.
new
@formatter
=
Gitlab
::
ImportFormatter
.
new
else
else
raise
Projects
::
ImportService
::
Error
,
"Unable to find project import data credentials for project ID:
#{
@project
.
id
}
"
raise
Projects
::
ImportService
::
Error
,
"Unable to find project import data credentials for project ID:
#{
@project
.
id
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment