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
Jérome Perrin
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
...
@@ -216,12 +216,7 @@ namespace :gitlab do
puts
""
puts
""
Project
.
find_each
(
batch_size:
100
)
do
|
project
|
Project
.
find_each
(
batch_size:
100
)
do
|
project
|
message
=
if
sanitize
print
sanitized_message
(
project
)
"
#{
project
.
namespace_id
.
to_s
.
yellow
}
/
#{
project
.
id
.
to_s
.
yellow
}
... "
else
"
#{
project
.
name_with_namespace
.
yellow
}
... "
end
print
message
if
project
.
satellite
.
exists?
if
project
.
satellite
.
exists?
puts
"yes"
.
green
puts
"yes"
.
green
...
@@ -530,12 +525,7 @@ namespace :gitlab do
...
@@ -530,12 +525,7 @@ namespace :gitlab do
puts
""
puts
""
Project
.
find_each
(
batch_size:
100
)
do
|
project
|
Project
.
find_each
(
batch_size:
100
)
do
|
project
|
message
=
if
sanitize
print
sanitized_message
(
project
)
"
#{
project
.
id
.
to_s
.
yellow
}
... "
else
"
#{
project
.
name_with_namespace
.
yellow
}
... "
end
print
message
if
project
.
empty_repo?
if
project
.
empty_repo?
puts
"repository is empty"
.
magenta
puts
"repository is empty"
.
magenta
...
@@ -598,12 +588,7 @@ namespace :gitlab do
...
@@ -598,12 +588,7 @@ namespace :gitlab do
puts
""
puts
""
Project
.
find_each
(
batch_size:
100
)
do
|
project
|
Project
.
find_each
(
batch_size:
100
)
do
|
project
|
message
=
if
sanitize
print
sanitized_message
(
project
)
"
#{
project
.
namespace_id
.
to_s
.
yellow
}
/
#{
project
.
id
.
to_s
.
yellow
}
... "
else
"
#{
project
.
name_with_namespace
.
yellow
}
... "
end
print
message
if
project
.
namespace
if
project
.
namespace
puts
"yes"
.
green
puts
"yes"
.
green
...
@@ -853,6 +838,14 @@ namespace :gitlab do
...
@@ -853,6 +838,14 @@ namespace :gitlab do
Dir
.
pwd
==
'/opt/gitlab/embedded/service/gitlab-rails'
Dir
.
pwd
==
'/opt/gitlab/embedded/service/gitlab-rails'
end
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
def
sanitize
if
ENV
[
'SANITIZE'
]
==
"true"
if
ENV
[
'SANITIZE'
]
==
"true"
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