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
Boxiang Sun
gitlab-ce
Commits
4994ebbb
Commit
4994ebbb
authored
Aug 27, 2013
by
James Newton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update gitlab:check to look for update hook, not post-receive
parent
6b16f8a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+8
-8
No files found.
lib/tasks/gitlab/check.rake
View file @
4994ebbb
...
...
@@ -374,8 +374,8 @@ namespace :gitlab do
check_repo_base_is_not_symlink
check_repo_base_user_and_group
check_repo_base_permissions
check_
post_receiv
e_hook_is_up_to_date
check_repos_
post_receiv
e_hooks_is_link
check_
updat
e_hook_is_up_to_date
check_repos_
updat
e_hooks_is_link
finished_checking
"GitLab Shell"
end
...
...
@@ -385,10 +385,10 @@ namespace :gitlab do
########################
def
check_
post_receiv
e_hook_is_up_to_date
print
"
post-receiv
e hook up-to-date? ... "
def
check_
updat
e_hook_is_up_to_date
print
"
updat
e hook up-to-date? ... "
hook_file
=
"
post-receiv
e"
hook_file
=
"
updat
e"
gitlab_shell_hooks_path
=
Gitlab
.
config
.
gitlab_shell
.
hooks_path
gitlab_shell_hook_file
=
File
.
join
(
gitlab_shell_hooks_path
,
hook_file
)
gitlab_shell_ssh_user
=
Gitlab
.
config
.
gitlab_shell
.
ssh_user
...
...
@@ -494,10 +494,10 @@ namespace :gitlab do
end
end
def
check_repos_
post_receiv
e_hooks_is_link
print
"
post-receiv
e hooks in repos are links: ... "
def
check_repos_
updat
e_hooks_is_link
print
"
updat
e hooks in repos are links: ... "
hook_file
=
"
post-receiv
e"
hook_file
=
"
updat
e"
gitlab_shell_hooks_path
=
Gitlab
.
config
.
gitlab_shell
.
hooks_path
gitlab_shell_hook_file
=
File
.
join
(
gitlab_shell_hooks_path
,
hook_file
)
gitlab_shell_ssh_user
=
Gitlab
.
config
.
gitlab_shell
.
ssh_user
...
...
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