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
ed38627e
Commit
ed38627e
authored
Sep 15, 2015
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Guard against trailing slashes in repos_path
parent
52d7813f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
lib/tasks/gitlab/cleanup.rake
lib/tasks/gitlab/cleanup.rake
+5
-1
No files found.
lib/tasks/gitlab/cleanup.rake
View file @
ed38627e
...
...
@@ -53,7 +53,11 @@ namespace :gitlab do
IO
.
popen
(
%W(find
#{
repo_root
}
-mindepth 1 -maxdepth 2 -name *.git)
)
do
|
find
|
find
.
each_line
do
|
path
|
path
.
chomp!
repo_with_namespace
=
path
.
sub
(
repo_root
+
'/'
,
''
).
chomp
(
'.git'
).
chomp
(
'.wiki'
)
repo_with_namespace
=
path
.
sub
(
repo_root
,
''
).
sub
(
%r{^/*}
,
''
).
chomp
(
'.git'
).
chomp
(
'.wiki'
)
next
if
Project
.
find_with_namespace
(
repo_with_namespace
)
new_path
=
path
+
move_suffix
puts
path
.
inspect
+
' -> '
+
new_path
.
inspect
...
...
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