mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-16 16:16:43 +10:00
extends git hook from default for newly created projects
This commit is contained in:
@@ -91,6 +91,12 @@ module Projects
|
||||
if @project.import?
|
||||
@project.import_start
|
||||
end
|
||||
|
||||
predefined_git_hook = GitHook.find_by(project_id: nil)
|
||||
|
||||
if predefined_git_hook
|
||||
project.git_hook = predefined_git_hook.clone
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user