名称

post-lock — 成功锁定路径的通知。

描述

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

If the post-lock hook returns a nonzero exit status, the lock 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 locked the paths

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

普通用户

Lock notification