class documentation
pre-receive shell hook.
| Method | __init__ |
Initialize pre-receive hook. |
| Method | execute |
Execute the pre-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 |
Undocumented |
| Instance Variable | pre |
Undocumented |
overrides
dulwich.hooks.ShellHook.__init__Initialize pre-receive hook.
| Parameters | |
controldir:str | Path to the git control directory (.git) |
overrides
dulwich.hooks.ShellHook.executeExecute the pre-receive hook.
| Parameters | |
clientSequence[ | List of tuples containing (old_sha, new_sha, ref_name) for each reference to be updated |
| Returns | |
tuple[ | Tuple of (stdout, stderr) from hook execution |
| Raises | |
HookError | If hook execution fails (exits with non-zero status) |