This looks like you may have something misconfigured for your origin
somehow.

You should be ending up with a URL that is:

https://gerrit.onap.org/r/tools/hooks/commit-msg

Note the inclusion of the /r/ before tools in the path?

You can manually do what git review is trying to do for the hook by
doing the following from the cloned repo root:

--[cut]--
mkdir -p .git/hooks
wget https://gerrit.onap.org/r/tools/hooks/commit-msg -O
.git/hooks/commit-msg
chmod +x .git/hooks/commit-msg
--[/cut]--

On 11/08/2018 12:36 AM, Ying, Ruoyu wrote:
> Hi all,
> 
>  
> 
> I tried to push a patch to the gerrit repo, but it always shows error
> like this:
> 
> 
> ruoyu@ruoyu-dev-nuc:~/optf/osdf$ git review -R
> 
> Problems encountered installing commit-msg hook
> 
> The following command failed with exit code 104
> 
>     "GET https://gerrit.onap.org/tools/hooks/commit-msg";
> 
> -----------------------
> 
> <html>
> 
> <head>
> 
> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
> 
> <title>Error 404 </title>
> 
> </head>
> 
> <body>
> 
> <h2>HTTP ERROR: 404</h2>
> 
> <p>Problem accessing /tools/hooks/commit-msg. Reason:
> 
> <pre>    Not Found</pre></p>
> 
> <hr /><i><small>Powered by Jetty://</small></i>
> 
> </body>
> 
> </html>
> 
>  
> 
> Anyone knows how to solve the problem?
> 
> Thanks.
> 
>  
> 
> Best Regards,
> 
> Ruoyu
> 
> 

-- 
Andrew J Grimberg
Manager Release Engineering
The Linux Foundation


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13615): https://lists.onap.org/g/onap-discuss/message/13615
Mute This Topic: https://lists.onap.org/mt/28034546/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to