From a0391bcdf687e13ea0c6f5e50915e31685879d9c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 27 2014 09:24:24 +0000 Subject: The hook's install method will require the db object storing the configuration This in order to set the configuration properly in the git repo and thus have the hook working. --- diff --git a/progit/hooks/__init__.py b/progit/hooks/__init__.py index 10f2e3d..1d37002 100644 --- a/progit/hooks/__init__.py +++ b/progit/hooks/__init__.py @@ -40,11 +40,13 @@ class BaseHook(object): os.chmod(postreceive, 0755) @classmethod - def install(cls, project): + def install(cls, project, dbobj): ''' Method called to install the hook for a project. :arg project: a ``progit.model.Project`` object to which the hook should be installed + :arg dbobj: the DB object the hook uses to store the settings + information. ''' pass