class documentation
update shell hook.
| Method | __init__ |
Initialize update hook. |
| Method | execute |
Execute the update hook for a single ref. |
| 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 update hook.
| Parameters | |
controldir:str | Path to the git control directory (.git) |
overrides
dulwich.hooks.ShellHook.executeExecute the update hook for a single ref.
| Parameters | |
refbytes | Name of the reference being updated |
oldbytes | Old SHA of the reference |
newbytes | New SHA of the reference |
| Returns | |
tuple[ | Tuple of (stdout, stderr) from hook execution |
| Raises | |
HookError | If hook execution fails (exits with non-zero status) |