名称

post-unlock — 路径成功解锁的通知。

描述

The post-unlock hook runs after one or more paths has been unlocked. It is typically used to send email notification of the unlock event.

If the post-unlock hook returns a nonzero exit status, the unlock will not be aborted since it has already completed. However, anything that the hook printed to STDERR will be marshalled back to the client, making it easier to diagnose hook failures.

输入参数

传递给你钩子程序的命令行参数,按照顺序是:

  1. Repository path

  2. Authenticated username of the person who unlocked the paths

此外,解锁路径通过标准输入传递给钩子程序,每行一个路径。

普通用户

Unlock notification