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
fac50387
Commit
fac50387
authored
Feb 01, 2013
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port changes from #2803
parent
42dd006d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
38 deletions
+47
-38
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+47
-38
No files found.
lib/tasks/gitlab/check.rake
View file @
fac50387
...
@@ -782,6 +782,9 @@ namespace :gitlab do
...
@@ -782,6 +782,9 @@ namespace :gitlab do
Project
.
find_each
(
batch_size:
100
)
do
|
project
|
Project
.
find_each
(
batch_size:
100
)
do
|
project
|
print
"
#{
project
.
name_with_namespace
.
yellow
}
... "
print
"
#{
project
.
name_with_namespace
.
yellow
}
... "
if
project
.
empty_repo?
puts
"repository is empty"
.
magenta
else
correct_options
=
options
.
map
do
|
name
,
value
|
correct_options
=
options
.
map
do
|
name
,
value
|
run
(
"git --git-dir=
\"
#{
project
.
repository
.
path_to_repo
}
\"
config --get
#{
name
}
"
).
try
(
:chomp
)
==
value
run
(
"git --git-dir=
\"
#{
project
.
repository
.
path_to_repo
}
\"
config --get
#{
name
}
"
).
try
(
:chomp
)
==
value
end
end
...
@@ -800,6 +803,7 @@ namespace :gitlab do
...
@@ -800,6 +803,7 @@ namespace :gitlab do
end
end
end
end
end
end
end
def
check_repos_post_receive_hooks_is_link
def
check_repos_post_receive_hooks_is_link
print
"post-receive hooks in repos are links: ... "
print
"post-receive hooks in repos are links: ... "
...
@@ -822,6 +826,10 @@ namespace :gitlab do
...
@@ -822,6 +826,10 @@ namespace :gitlab do
Project
.
find_each
(
batch_size:
100
)
do
|
project
|
Project
.
find_each
(
batch_size:
100
)
do
|
project
|
print
"
#{
project
.
name_with_namespace
.
yellow
}
... "
print
"
#{
project
.
name_with_namespace
.
yellow
}
... "
if
project
.
empty_repo?
puts
"repository is empty"
.
magenta
else
project_hook_file
=
File
.
join
(
project
.
repository
.
path_to_repo
,
"hooks"
,
hook_file
)
project_hook_file
=
File
.
join
(
project
.
repository
.
path_to_repo
,
"hooks"
,
hook_file
)
unless
File
.
exists?
(
project_hook_file
)
unless
File
.
exists?
(
project_hook_file
)
...
@@ -851,6 +859,7 @@ namespace :gitlab do
...
@@ -851,6 +859,7 @@ namespace :gitlab do
end
end
end
end
end
end
end
# Helper methods
# Helper methods
...
...
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