The hook is called after all commands have been processed. Only commands with a status of {@link ReceiveCommand.Result#OK} are passed into the hook. To getall commands within the hook, see {@link ReceivePack#getAllCommands()}.
Any post-receive hook implementation should not update the status of a command, as the command has already completed or failed, and the status has already been returned to the client.
Hooks should execute quickly, as they block the server and the client from completing the connection.
|
|
|
|
|
|