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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
077ed540
Commit
077ed540
authored
Dec 11, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the unused, EE-only mv_storage gitlab_projects command
parent
65cbc16b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
lib/gitlab/shell.rb
lib/gitlab/shell.rb
+0
-14
spec/lib/gitlab/shell_spec.rb
spec/lib/gitlab/shell_spec.rb
+0
-8
No files found.
lib/gitlab/shell.rb
View file @
077ed540
...
...
@@ -144,20 +144,6 @@ module Gitlab
storage
,
"
#{
path
}
.git"
,
"
#{
new_path
}
.git"
])
end
# Move repository storage
#
# current_storage - project's current storage path
# path - project path with namespace
# new_storage - new storage path
#
# Ex.
# mv_storage("/path/to/storage", "randx/gitlab-ci", "/new/storage/path")
#
def
mv_storage
(
current_storage
,
path
,
new_storage
)
Gitlab
::
Utils
.
system_silent
([
gitlab_shell_projects_path
,
'mv-storage'
,
current_storage
,
"
#{
path
}
.git"
,
new_storage
])
end
# Fork repository to new path
# forked_from_storage - forked-from project's storage path
# forked_from_disk_path - project disk path
...
...
spec/lib/gitlab/shell_spec.rb
View file @
077ed540
...
...
@@ -64,14 +64,6 @@ describe Gitlab::Shell do
end
end
describe
'#mv_storage'
do
it
'executes the command'
do
expect
(
Gitlab
::
Utils
).
to
receive
(
:system_silent
)
.
with
([
projects_path
,
'mv-storage'
,
'current/storage'
,
'project/path.git'
,
'new/storage'
])
gitlab_shell
.
mv_storage
(
'current/storage'
,
'project/path'
,
'new/storage'
)
end
end
describe
'#push_remote_branches'
do
let!
(
:args
)
{
[
projects_path
,
'push-branches'
,
'current/storage'
,
'project/path.git'
,
'new/storage'
,
'600'
,
'--force'
,
'master'
]
}
...
...
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