缺少 git 文件 hooks/post-receive.sample
Missing git file hooks/post-receive.sample
我在 CentOs 6 服务器上使用 git 1.7.1,当我在 my_repo.git 上 运行 git --bare init
我检查了 my_repo.git/hooks 我可以看到所有的钩子,包括 post-receive.sample.
现在我在 Centos 7 服务器上使用 git 2.4.1,post-receive.sample 文件丢失,所有其他挂钩都在那里,但不是我需要的那个.
我知道我可以从以前的 repo 复制文件,然后根据需要更改内容,但我想知道为什么 post-receive.sample 没有像以前那样生成。
显然,post-receive.sample
已在提交 8d714b11df2b65e5f4272c1616e561930010be90:
中删除
commit 8d714b11df2b65e5f4272c1616e561930010be90
Author: Gerrit Pape <pape@smarden.org>
Date: Tue Sep 27 11:56:53 2011 +0000
templates/hooks--*: remove sample hooks without any functionality
Remove the sample post-commit and post-receive hooks. The sample
post-commit doesn't contain any sample functionality and the comments do
not provide more information than already found in the documentation.
The sample post-receive hooks doesn't provide any sample functionality
either and refers in the comments to a contrib hook that might be
installed in different locations on different systems, which isn't that
helpful.
Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
我在 CentOs 6 服务器上使用 git 1.7.1,当我在 my_repo.git 上 运行 git --bare init
我检查了 my_repo.git/hooks 我可以看到所有的钩子,包括 post-receive.sample.
现在我在 Centos 7 服务器上使用 git 2.4.1,post-receive.sample 文件丢失,所有其他挂钩都在那里,但不是我需要的那个.
我知道我可以从以前的 repo 复制文件,然后根据需要更改内容,但我想知道为什么 post-receive.sample 没有像以前那样生成。
显然,post-receive.sample
已在提交 8d714b11df2b65e5f4272c1616e561930010be90:
commit 8d714b11df2b65e5f4272c1616e561930010be90
Author: Gerrit Pape <pape@smarden.org>
Date: Tue Sep 27 11:56:53 2011 +0000
templates/hooks--*: remove sample hooks without any functionality
Remove the sample post-commit and post-receive hooks. The sample
post-commit doesn't contain any sample functionality and the comments do
not provide more information than already found in the documentation.
The sample post-receive hooks doesn't provide any sample functionality
either and refers in the comments to a contrib hook that might be
installed in different locations on different systems, which isn't that
helpful.
Signed-off-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>