<div dir="ltr"><div><div><div>Hi,<br><br></div><div>Git review tries to download gerrit hook used to add automatically a Change-Id when missing.<br></div><div><br></div><div>Old versions of git-review (<1.24 iirc) badly supports http(s) protocols and use scp to download the hook.<br></div><br><br></div>You have 2 options: <br>* upgrade your git-review <br>* or download manually the hook:<br></div>  mkdir .git/hooks<br><div>  wget <a href="https://review.openstack.org/tools/hooks/commit-msg">https://review.openstack.org/tools/hooks/commit-msg</a> -qO .git/hooks/commit-msg<br></div><div>  chmod +x .git/hooks/commit-msg<br><br><br></div><div>Cédric<br></div><div><br>  <br> <br><div><br><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 1, 2015 at 1:38 PM, 胡西宁 <span dir="ltr"><<a href="mailto:xining@unitedstack.com" target="_blank">xining@unitedstack.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
hi everyone, when I run "git review -s",  it occur a error below, who can help me slove it, thanks<br>
<br>
# LANG=C LANGUAGE=C git review -v<br>
<br>
2015-07-01 19:33:24.301828 Running: git log --color=never --oneline HEAD^1..HEAD<br>
2015-07-01 19:33:24.306742 Running: git remote<br>
2015-07-01 19:33:24.310573 Running: git branch -a --color=never<br>
2015-07-01 19:33:24.315126 Running: git rev-parse --show-toplevel --git-dir<br>
2015-07-01 19:33:24.318862 Running: git remote show -n gerrit<br>
Found origin Push URL: <a href="https://review.openstack.org/stackforge/python-tackerclient.git" rel="noreferrer" target="_blank">https://review.openstack.org/stackforge/python-tackerclient.git</a><br>
Fetching commit hook from: scp://review.openstack.org:None<br>
2015-07-01 19:33:24.323647 Running: scp review.openstack.org:hooks/commit-msg .git/hooks/commit-msg<br>
Problems encountered installing commit-msg hook<br>
The following command failed with exit code 1<br>
    "scp  review.openstack.org:hooks/commit-msg .git/hooks/commit-msg"<br>
-----------------------<br>
.git/hooks/commit-msg: No such file or directory<br>
<br>
<br>
this my remote repo:<br>
#git remote -v<br>
gerrit <a href="https://review.openstack.org/stackforge/python-tackerclient.git" rel="noreferrer" target="_blank">https://review.openstack.org/stackforge/python-tackerclient.git</a> (fetch)<br>
gerrit <a href="https://review.openstack.org/stackforge/python-tackerclient.git" rel="noreferrer" target="_blank">https://review.openstack.org/stackforge/python-tackerclient.git</a> (push)<br>
origin    <a href="https://github.com/stackforge/python-tackerclient.git" rel="noreferrer" target="_blank">https://github.com/stackforge/python-tackerclient.git</a> (fetch)<br>
origin    <a href="https://github.com/stackforge/python-tackerclient.git" rel="noreferrer" target="_blank">https://github.com/stackforge/python-tackerclient.git</a> (push)<br>
<br>
thanks<br>
cinghu<br>
<br>
<br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div>