зеркало из https://github.com/microsoft/git.git
pre-commit.sample: don't print incidental SHA1
Make the sample pre-commit hook script discard all git-rev-parse output, not just stderr. Otherwise, it would print an SHA1. Signed-off-by: Jim Meyering <meyering@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
f044fe2de6
Коммит
c646217e13
|
@ -7,7 +7,7 @@
|
||||||
#
|
#
|
||||||
# To enable this hook, rename this file to "pre-commit".
|
# To enable this hook, rename this file to "pre-commit".
|
||||||
|
|
||||||
if git-rev-parse --verify HEAD 2>/dev/null
|
if git-rev-parse --verify HEAD >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
against=HEAD
|
against=HEAD
|
||||||
else
|
else
|
||||||
|
|
Загрузка…
Ссылка в новой задаче