Option to force use of "clone with commit-msg hook"?

203 views
Skip to first unread message

Robert Tsai (Verb Ext.)

unread,
Aug 4, 2017, 6:25:33 PM8/4/17
to Repo and Gerrit Discussion
Is there a way to force use of "clone with commit-msg hook" (and hide the simple "clone" option), ideally as a per-project project.config?

I'd like to reduce problems caused by users cloning a repository but not installing the message hook. For example, I've set download.scheme to only contain "ssh" to disable "http" and other schemes.

Thanks,
--Rob

Jonathan Nieder

unread,
Aug 4, 2017, 6:31:04 PM8/4/17
to Robert Tsai (Verb Ext.), Repo and Gerrit Discussion
Looking at https://gerrit.googlesource.com/plugins/download-commands/+/master/src/main/java/com/googlesource/gerrit/plugins/download/command/CloneCommandsModule.java, I don't see a way to do that without making a custom plugin to replace download-commands.

Making it configurable in the download-commands plugin sounds like a good idea. Would you mind filing a feature request at https://crbug.com/gerrit for that? Even better if the feature request links to a change implementing it.

Thanks,
Jonathan

--
--
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.

Jonathan Nieder

unread,
Aug 4, 2017, 7:20:47 PM8/4/17
to Robert Tsai (Verb Ext.), Repo and Gerrit Discussion
Thanks. This is https://crbug.com/gerrit/6950, for those following along at home.
Reply all
Reply to author
Forward
0 new messages