From ccf44c15785fe1df554ed5032cb7fd27461b3bb7 Mon Sep 17 00:00:00 2001 From: Prateek Chanda Date: Fri, 10 Aug 2018 22:08:10 +0530 Subject: [PATCH] Some refinement in Gerrit URL while using curl Change-Id: Iee3a5780d133c6f4f98d5fb974971a791cb3ebb1 Signed-off-by: Prateek Chanda --- docs/_static/commit-hook-curl.example | 1 + docs/gerrit.rst | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 docs/_static/commit-hook-curl.example diff --git a/docs/_static/commit-hook-curl.example b/docs/_static/commit-hook-curl.example new file mode 100644 index 0000000..9daeb6d --- /dev/null +++ b/docs/_static/commit-hook-curl.example @@ -0,0 +1 @@ + curl -Lo .git/hooks/commit-msg http://USERNAME@gerrit.linuxfoundation.org/infra/tools/hooks/commit-msg \ No newline at end of file diff --git a/docs/gerrit.rst b/docs/gerrit.rst index 3e9b5db..43d8d99 100644 --- a/docs/gerrit.rst +++ b/docs/gerrit.rst @@ -146,6 +146,11 @@ commit message. .. literalinclude:: _static/commit-hook.example :language: bash + OR + + .. literalinclude:: _static/commit-hook-curl.example + :language: bash + .. note:: The hook implementation is intelligent at inserting the Change-Id_ line before -- 2.16.6