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
3db47d12
Commit
3db47d12
authored
Oct 07, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'check_hooks' of /home/git/repositories/gitlab/gitlabhq
parents
073c8a29
99916fe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+12
-6
No files found.
lib/tasks/gitlab/check.rake
View file @
3db47d12
...
@@ -392,14 +392,20 @@ namespace :gitlab do
...
@@ -392,14 +392,20 @@ namespace :gitlab do
hook_file
=
"update"
hook_file
=
"update"
gitlab_shell_hooks_path
=
Gitlab
.
config
.
gitlab_shell
.
hooks_path
gitlab_shell_hooks_path
=
Gitlab
.
config
.
gitlab_shell
.
hooks_path
gitlab_shell_hook_file
=
File
.
join
(
gitlab_shell_hooks_path
,
hook_file
)
gitlab_shell_hook_file
=
File
.
join
(
gitlab_shell_hooks_path
,
hook_file
)
gitlab_shell_ssh_user
=
Gitlab
.
config
.
gitlab_shell
.
ssh_user
unless
File
.
exists?
(
gitlab_shell_hook_file
)
if
File
.
exists?
(
gitlab_shell_hook_file
)
puts
"can't check because of previous errors"
.
magenta
puts
"yes"
.
green
return
else
puts
"no"
.
red
puts
"Could not find
#{
gitlab_shell_hook_file
}
"
try_fixing_it
(
'Check the hooks_path in config/gitlab.yml'
,
'Check your gitlab-shell installation'
)
for_more_information
(
see_installation_guide_section
"GitLab Shell"
)
end
end
puts
"yes"
.
green
end
end
def
check_repo_base_exists
def
check_repo_base_exists
...
...
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