extends git hook from default for newly created projects

This commit is contained in:
Valery Sizov
2015-03-26 13:37:29 +02:00
parent ecbd949424
commit b50b5e4e33
+6
View File
@@ -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