installCommitMsgHookCommand on gerrit-review.googlesource.com

413 views
Skip to first unread message

Fabio Ponciroli

unread,
Dec 14, 2022, 5:57:50 AM12/14/22
to Repo and Gerrit Discussion
Hi all,
what is the value of gerrit.installCommitMsgHookCommand in the gerrit-review.googlesource.com installation?

I think it is a custom value since it doesn't look like the standard one. Am I correct?

Thanks,
Ponch

Ben Rohlfs

unread,
Dec 14, 2022, 6:40:09 AM12/14/22
to Fabio Ponciroli, Repo and Gerrit Discussion
Looking at our internal configs I think the value is:
f=\`git rev-parse --git-dir\`/hooks/commit-msg ; mkdir -p \$(dirname \$f) ; curl -Lo \$f https://gerrit-review.googlesource.com/tools/hooks/commit-msg ; chmod +x \$f

Why do you want to know? :-)

-Ben

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CAPYXC5Pn0pEYMoRS0wJT9LQwxdH2n2MzzKVKWL%2BaCh%3DdqjURMA%40mail.gmail.com.

Fabio Ponciroli

unread,
Dec 14, 2022, 7:37:57 AM12/14/22
to Ben Rohlfs, Repo and Gerrit Discussion
Thanks Ben!


Il giorno mer 14 dic 2022 alle ore 12:40 Ben Rohlfs <bro...@google.com> ha scritto:
Looking at our internal configs I think the value is:
f=\`git rev-parse --git-dir\`/hooks/commit-msg ; mkdir -p \$(dirname \$f) ; curl -Lo \$f https://gerrit-review.googlesource.com/tools/hooks/commit-msg ; chmod +x \$f
 
Why do you want to know? :-)

I was looking for a command to install the commit message hook which works with zsh. The default one doesn't.
Reply all
Reply to author
Forward
0 new messages