diff options
author | Valery Sizov <valery@gitlab.com> | 2015-02-02 13:52:44 -0800 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2015-02-05 12:50:34 -0800 |
commit | 7ddba92a394b5e5fd67eda50b6ee25b38e53e7b9 (patch) | |
tree | 6881815924e2f0b07506e81f4ae6f9b9506c4035 /lib | |
parent | 5194214e3a2f97accf0c8119b4cb39fd4fcef5db (diff) | |
download | gitlab-ce-7ddba92a394b5e5fd67eda50b6ee25b38e53e7b9.tar.gz |
Gitlab integration: added tests
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/gitlab_import/project_creator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/gitlab_import/project_creator.rb b/lib/gitlab/gitlab_import/project_creator.rb index affd828e816..6424d56f8f1 100644 --- a/lib/gitlab/gitlab_import/project_creator.rb +++ b/lib/gitlab/gitlab_import/project_creator.rb @@ -19,7 +19,7 @@ module Gitlab visibility_level: repo["visibility_level"], import_type: "gitlab", import_source: repo["path_with_namespace"], - import_url: repo["http_url_to_repo"]#.sub("://", "://oauth2@#{current_user.gitlab_access_token}") + import_url: repo["http_url_to_repo"].sub("://", "://oauth2:#{current_user.gitlab_access_token}@") ) if @project.save! |