BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
042465c4
Commit
042465c4
authored
Sep 08, 2014
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use create-hooks instead of rewrite-hooks.sh
The rewrite-hooks.sh script is a deprecated wrapper for gitlab-shell's create-hooks script.
parent
1535835d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
20140903115954_migrate_to_new_shell.rb
db/migrate/20140903115954_migrate_to_new_shell.rb
+1
-1
repository.rb
lib/backup/repository.rb
+1
-1
check.rake
lib/tasks/gitlab/check.rake
+2
-2
No files found.
db/migrate/20140903115954_migrate_to_new_shell.rb
View file @
042465c4
class
MigrateToNewShell
<
ActiveRecord
::
Migration
def
change
gitlab_shell_path
=
Gitlab
.
config
.
gitlab_shell
.
path
if
system
(
"
sh
#{
gitlab_shell_path
}
/support/rewrite-hooks.sh
"
)
if
system
(
"
#{
gitlab_shell_path
}
/bin/create-hooks
"
)
puts
'Repositories updated with new hooks'
else
raise
'Failed to rewrite gitlab-shell hooks in repositories'
...
...
lib/backup/repository.rb
View file @
042465c4
...
...
@@ -69,7 +69,7 @@ module Backup
end
print
'Put GitLab hooks in repositories dirs'
.
yellow
if
system
(
"
#{
Gitlab
.
config
.
gitlab_shell
.
path
}
/
support/rewrite-hooks.sh"
,
Gitlab
.
config
.
gitlab_shell
.
repos_path
)
if
system
(
"
#{
Gitlab
.
config
.
gitlab_shell
.
path
}
/
bin/create-hooks"
)
puts
" [DONE]"
.
green
else
puts
" [FAILED]"
.
red
...
...
lib/tasks/gitlab/check.rake
View file @
042465c4
...
...
@@ -541,7 +541,7 @@ namespace :gitlab do
"sudo -u
#{
gitlab_shell_ssh_user
}
ln -sf
#{
gitlab_shell_hook_file
}
#{
project_hook_file
}
"
)
for_more_information
(
"
#{
gitlab_shell_path
}
/
support/rewrite-hooks.sh
"
"
#{
gitlab_shell_path
}
/
bin/create-hooks
"
)
fix_and_rerun
next
...
...
@@ -556,7 +556,7 @@ namespace :gitlab do
"sudo -u
#{
gitlab_shell_ssh_user
}
ln -sf
#{
gitlab_shell_hook_file
}
#{
project_hook_file
}
"
)
for_more_information
(
"
lib/support/rewrite-hooks.sh
"
"
#{
gitlab_shell_path
}
/bin/create-hooks
"
)
fix_and_rerun
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