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
Léo-Paul Géneau
gitlab-ce
Commits
553f3aba
Commit
553f3aba
authored
Jul 07, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicated calls.
parent
4c68d238
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
18 deletions
+11
-18
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+11
-18
No files found.
lib/tasks/gitlab/check.rake
View file @
553f3aba
...
...
@@ -216,12 +216,7 @@ namespace :gitlab do
puts
""
Project
.
find_each
(
batch_size:
100
)
do
|
project
|
message
=
if
sanitize
"
#{
project
.
namespace_id
.
to_s
.
yellow
}
/
#{
project
.
id
.
to_s
.
yellow
}
... "
else
"
#{
project
.
name_with_namespace
.
yellow
}
... "
end
print
message
print
sanitized_message
(
project
)
if
project
.
satellite
.
exists?
puts
"yes"
.
green
...
...
@@ -530,12 +525,7 @@ namespace :gitlab do
puts
""
Project
.
find_each
(
batch_size:
100
)
do
|
project
|
message
=
if
sanitize
"
#{
project
.
id
.
to_s
.
yellow
}
... "
else
"
#{
project
.
name_with_namespace
.
yellow
}
... "
end
print
message
print
sanitized_message
(
project
)
if
project
.
empty_repo?
puts
"repository is empty"
.
magenta
...
...
@@ -598,12 +588,7 @@ namespace :gitlab do
puts
""
Project
.
find_each
(
batch_size:
100
)
do
|
project
|
message
=
if
sanitize
"
#{
project
.
namespace_id
.
to_s
.
yellow
}
/
#{
project
.
id
.
to_s
.
yellow
}
... "
else
"
#{
project
.
name_with_namespace
.
yellow
}
... "
end
print
message
print
sanitized_message
(
project
)
if
project
.
namespace
puts
"yes"
.
green
...
...
@@ -853,6 +838,14 @@ namespace :gitlab do
Dir
.
pwd
==
'/opt/gitlab/embedded/service/gitlab-rails'
end
def
sanitized_message
(
project
)
if
sanitize
"
#{
project
.
namespace_id
.
to_s
.
yellow
}
/
#{
project
.
id
.
to_s
.
yellow
}
... "
else
"
#{
project
.
name_with_namespace
.
yellow
}
... "
end
end
def
sanitize
if
ENV
[
'SANITIZE'
]
==
"true"
true
...
...
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