class documentation

class PostReceiveShellHook(ShellHook):

Constructor: PostReceiveShellHook(controldir)

View In Hierarchy

post-receive shell hook.

Method __init__ Initialize post-receive hook.
Method execute Execute the post-receive hook.
Instance Variable controldir Undocumented

Inherited from ShellHook:

Instance Variable cwd Undocumented
Instance Variable filepath Undocumented
Instance Variable name Undocumented
Instance Variable numparam Undocumented
Instance Variable post_exec_callback Undocumented
Instance Variable pre_exec_callback Undocumented
def __init__(self, controldir: str):

Initialize post-receive hook.

Parameters
controldir:strPath to the git control directory (.git)
def execute(self, client_refs: Sequence[tuple[bytes, bytes, bytes]]) -> bytes | None:

Execute the post-receive hook.

Parameters
client_refs:Sequence[tuple[bytes, bytes, bytes]]List of tuples containing (old_sha, new_sha, ref_name) for each updated reference
Returns
bytes | NoneOutput from the hook execution or None if hook doesn't exist
Raises
HookErrorIf hook execution fails
controldir =

Undocumented