Skip to content
Snippets Groups Projects
Commit 2a1fac9e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

add import repo gitlab_shell call

parent ea0cb39d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -13,6 +13,17 @@ module Gitlab
system("/home/git/gitlab-shell/bin/gitlab-projects add-project #{name}.git")
end
 
# Import repository
#
# name - project path with namespace
#
# Ex.
# import_repository("gitlab/gitlab-ci", "https://github.com/randx/six.git")
#
def import_repository(name, url)
system("/home/git/gitlab-shell/bin/gitlab-projects import-project #{name}.git #{url}")
end
# Remove repository from file system
#
# name - project path with namespace
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment