cpthook:一个 git 钩子管理器

时间:2024-07-01 00:26:10
【文件属性】:

文件名称:cpthook:一个 git 钩子管理器

文件大小:22KB

文件格式:ZIP

更新时间:2024-07-01 00:26:10

Python

钩子 如果您使用*存储库管理器,例如 gitolite 或 gitosis,您可能至少有几个使用自定义 git 挂钩的存储库。 CptHook 允许您从一个位置管理所有钩子。 配置示例 这是一个基本的 cpthook 配置,将单个钩子添加到单个存储库。 我在 /repos/cpthook-admin 下创建了一个 hook.cfg 文件,它是一个存储库,仅用于存储 cpthook 配置和我们希望管理的任何钩子脚本。 [cpthook] 脚本路径 = /repos/cpthook-admin/hooks.d repo-path = /repos [repos apu_repos] members = testrepo hooks = test_hooks [hooks test_hooks] post-commit = test-post-commit.sh 在 hooks.d


【文件预览】:
cpthook-master
----setup.py(2KB)
----.gitignore(12B)
----cpthook(4KB)
----update-cpthook.sh(3KB)
----cpthook.py(21KB)
----LICENSE(1KB)
----README.rst(5KB)
----tests()
--------test_cpthookconfig.py(2KB)
--------configs()
----docs()
--------.gitignore(19B)
--------Makefile(7KB)
--------index.rst(454B)
--------conf.py(8KB)
--------make.bat(7KB)

网友评论