how can git post-receive hook get name of repo it is running on?

前端 未结 4 1669
我在风中等你
我在风中等你 2020-12-28 14:40

I have a git post receive hook that will trigger a build on my build system. I need to create a string of the form \"$repo-name + $branch\" in the hook script.

I can

4条回答
  •  Happy的楠姐
    2020-12-28 15:01

    If one is using Gitolite, the GL_REPO variable is available in the post-receive environment by default.

提交回复
热议问题