Some refinement in Gerrit URL while using curl 94/12194/3
authorPrateek Chanda <prateekkol21@gmail.com>
Fri, 10 Aug 2018 16:38:10 +0000 (22:08 +0530)
committerPrateek Chanda <prateekkol21@gmail.com>
Sat, 11 Aug 2018 18:05:10 +0000 (18:05 +0000)
Change-Id: Iee3a5780d133c6f4f98d5fb974971a791cb3ebb1
Signed-off-by: Prateek Chanda <prateekkol21@gmail.com>
docs/_static/commit-hook-curl.example [new file with mode: 0644]
docs/gerrit.rst

diff --git a/docs/_static/commit-hook-curl.example b/docs/_static/commit-hook-curl.example
new file mode 100644 (file)
index 0000000..9daeb6d
--- /dev/null
@@ -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
index 3e9b5db..43d8d99 100644 (file)
@@ -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