[openstack-dev] when I run "git review -s", it occur a error

ZZelle zzelle at gmail.com
Wed Jul 1 13:08:28 UTC 2015


Hi,

Git review tries to download gerrit hook used to add automatically a
Change-Id when missing.

Old versions of git-review (<1.24 iirc) badly supports http(s) protocols
and use scp to download the hook.


You have 2 options:
* upgrade your git-review
* or download manually the hook:
  mkdir .git/hooks
  wget https://review.openstack.org/tools/hooks/commit-msg -qO
.git/hooks/commit-msg
  chmod +x .git/hooks/commit-msg


Cédric







On Wed, Jul 1, 2015 at 1:38 PM, 胡西宁 <xining at unitedstack.com> wrote:

>
> hi everyone, when I run "git review -s",  it occur a error below, who can
> help me slove it, thanks
>
> # LANG=C LANGUAGE=C git review -v
>
> 2015-07-01 19:33:24.301828 Running: git log --color=never --oneline
> HEAD^1..HEAD
> 2015-07-01 19:33:24.306742 Running: git remote
> 2015-07-01 19:33:24.310573 Running: git branch -a --color=never
> 2015-07-01 19:33:24.315126 Running: git rev-parse --show-toplevel --git-dir
> 2015-07-01 19:33:24.318862 Running: git remote show -n gerrit
> Found origin Push URL:
> https://review.openstack.org/stackforge/python-tackerclient.git
> Fetching commit hook from: scp://review.openstack.org:None
> 2015-07-01 19:33:24.323647 Running: scp review.openstack.org:hooks/commit-msg
> .git/hooks/commit-msg
> Problems encountered installing commit-msg hook
> The following command failed with exit code 1
>     "scp  review.openstack.org:hooks/commit-msg .git/hooks/commit-msg"
> -----------------------
> .git/hooks/commit-msg: No such file or directory
>
>
> this my remote repo:
> #git remote -v
> gerrit https://review.openstack.org/stackforge/python-tackerclient.git
> (fetch)
> gerrit https://review.openstack.org/stackforge/python-tackerclient.git
> (push)
> origin    https://github.com/stackforge/python-tackerclient.git (fetch)
> origin    https://github.com/stackforge/python-tackerclient.git (push)
>
> thanks
> cinghu
>
>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150701/cc87bffe/attachment.html>


More information about the OpenStack-dev mailing list