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
Kazuhiko Shiozaki
gitlab-ce
Commits
2a1fac9e
Commit
2a1fac9e
authored
Feb 11, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add import repo gitlab_shell call
parent
ea0cb39d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
lib/gitlab/backend/shell.rb
lib/gitlab/backend/shell.rb
+11
-0
No files found.
lib/gitlab/backend/shell.rb
View file @
2a1fac9e
...
@@ -13,6 +13,17 @@ module Gitlab
...
@@ -13,6 +13,17 @@ module Gitlab
system
(
"/home/git/gitlab-shell/bin/gitlab-projects add-project
#{
name
}
.git"
)
system
(
"/home/git/gitlab-shell/bin/gitlab-projects add-project
#{
name
}
.git"
)
end
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
# Remove repository from file system
#
#
# name - project path with namespace
# name - project path with namespace
...
...
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