commit-msg hook missing

770 views
Skip to first unread message

jo...@norricorp.f9.co.uk

unread,
Dec 28, 2014, 5:32:12 AM12/28/14
to repo-d...@googlegroups.com
Hi,
I installed gerrit from 2.9.3 (the latest version) and can not find a tools directory or a commit-msg hook anywhere. Hence I can not down load it to my clone of a gerrit generated git repository (project). 
As you can probably guess I am new to Gerrit. Any ideas what I am doing wrong?
Regards,
John

David Pursehouse

unread,
Dec 29, 2014, 4:39:02 AM12/29/14
to jo...@norricorp.f9.co.uk, repo-d...@googlegroups.com

You have to download it from your server with scp or curl.

See:

https://gerrit-review.googlesource.com/Documentation/cmd-hook-commit-msg.html#_obtaining


John

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


John Norris

unread,
Dec 29, 2014, 7:16:49 AM12/29/14
to David Pursehouse, repo-d...@googlegroups.com
Hi David,
that is the problem - it is not on my Gerrit server.
Regards,
John
 
------ Original Message ------
From: "David Pursehouse"
Sent: 29/12/2014 09:38:59
Subject: Re: commit-msg hook missing
 

You have to download it from your server with scp or curl.

See:

https://gerrit-review.googlesource.com/Documentation/cmd-hook-commit-msg.html#_obtaining

On Sun, 28 Dec 2014 19:33 null <jo...@norricorp.f9.co.uk> wrote:

Hi,

I installed gerrit from 2.9.3 (the latest version) and can not find a tools directory or a commit-msg hook anywhere. Hence I can not down load it to my clone of a gerrit generated git repository (project). 

As you can probably guess I am new to Gerrit. Any ideas what I am doing wrong?

Regards,


John

--
--
To unsubscribe, email mailto:repo-discuss%2Bunsu...@googlegroups.com

Jan Kundrát

unread,
Dec 29, 2014, 8:39:04 AM12/29/14
to repo-d...@googlegroups.com
On Monday, 29 December 2014 13:16:36 CEST, John Norris wrote:
> that is the problem - it is not on my Gerrit server.

It is. The fact that you do not see it anywhere in the FS doesn't mean that
it is missing.

Please post the full command that you use for downloading of that hook,
along with the error message it prints. Be sure to use a correct port
number (this has to go through Gerrit's SSH at port 29418, not the
systemwide one at port 22).

Cheers,
Jan

--
Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/

jo...@norricorp.f9.co.uk

unread,
Dec 30, 2014, 3:23:09 AM12/30/14
to repo-d...@googlegroups.com

C:\GitWork\helloTest>git remote -v
origin  https://admin@mint16:8443/helloTest (fetch)
origin  https://admin@mint16:8443/helloTest (push)

C:\GitWork\helloTest>\temp\curl\curl -Lo .git\hooks\comit-msg http://mint16:8443/tools/hooks/commit-msg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                      Dload  Upload   Total   Spent    Left  Speed
  0        0     0       0         0         0      0          0       --:--:--   --:--:--    --:--:--     0
curl: (52) Empty reply from server


So I am able to do a git clone anonymously and get a copy of the repository from the gerrit server. But gerrit is not supplying the hook. So you are right, the hook may well be in the gerrit server but getting it is not working. Any ideas?  
As an aside, if gerrit is not running then curl just waits and racks up the seconds. But with the server running, the reply is instant.

Regards,
John

lucamilanesio

unread,
Jan 2, 2015, 3:56:07 AM1/2/15
to repo-d...@googlegroups.com

Have you tried installing it again on a separate machine *without* SSL and with a default config?

Strange that when Gerrit is down the CURL is hanged and not failing immediately for a connection refused error.

Reply all
Reply to author
Forward
0 new messages