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
Tatuya Kamada
gitlab-ce
Commits
ee171028
Commit
ee171028
authored
Jul 29, 2015
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check that hooks directory exists before attempting to call realpath
Closes #2121
parent
82f0d3e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+4
-4
No files found.
lib/tasks/gitlab/check.rake
View file @
ee171028
...
...
@@ -485,7 +485,8 @@ namespace :gitlab do
if
project
.
empty_repo?
puts
"repository is empty"
.
magenta
elsif
File
.
realpath
(
project_hook_directory
)
==
File
.
realpath
(
gitlab_shell_hooks_path
)
elsif
File
.
directory?
(
project_hook_directory
)
&&
File
.
directory?
(
gitlab_shell_hooks_path
)
&&
(
File
.
realpath
(
project_hook_directory
)
==
File
.
realpath
(
gitlab_shell_hooks_path
))
puts
'ok'
.
green
else
puts
"wrong or missing hooks"
.
red
...
...
@@ -754,7 +755,7 @@ namespace :gitlab do
print
"Ruby version >=
#{
required_version
}
? ... "
if
current_version
.
valid?
&&
required_version
<=
current_version
puts
"yes (
#{
current_version
}
)"
.
green
puts
"yes (
#{
current_version
}
)"
.
green
else
puts
"no"
.
red
try_fixing_it
(
...
...
@@ -772,7 +773,7 @@ namespace :gitlab do
print
"Git version >=
#{
required_version
}
? ... "
if
current_version
.
valid?
&&
required_version
<=
current_version
puts
"yes (
#{
current_version
}
)"
.
green
puts
"yes (
#{
current_version
}
)"
.
green
else
puts
"no"
.
red
try_fixing_it
(
...
...
@@ -806,4 +807,3 @@ namespace :gitlab do
end
end
end
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