On Thu, Apr 18, 2013 at 5:14 AM, Tomáš Pelka <
tomp...@gmail.com> wrote:
> Hi so far I need to execute scp manually after git clone or right before I
> want to commit/review
>
> scp -P 29418 yourlogin@host:hooks/commit-msg .git/hooks/
>
> for gerrit to work properly. I'm looking for the way how to this step
> automatically.
>
> Do you guys solved such thing before? If so how?
For security reasons there isn't a way to do this. Git doesn't want to
install hooks that execute automatically. By having users download the
hook and install it themselves they have an opportunity to review the
implementation before they execute it.