Commit b50b5e4e authored by Valery Sizov's avatar Valery Sizov

extends git hook from default for newly created projects

parent ecbd9494
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment