From: Prateek Chanda Date: Fri, 10 Aug 2018 16:38:10 +0000 (+0530) Subject: Some refinement in Gerrit URL while using curl X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F94%2F12194%2F3;p=releng%2Fdocs.git Some refinement in Gerrit URL while using curl Change-Id: Iee3a5780d133c6f4f98d5fb974971a791cb3ebb1 Signed-off-by: Prateek Chanda --- 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