Reputation: 3
I want to restrict users to push directly to git repository without pre-commit to Phabricator. Please suggest solutions to avoid push without pre-commit. I don't know how to write git hook for this. Thanks in advance:)
Herald rules not working. Arc land still pushes code.
Upvotes: 0
Views: 919
Reputation: 889
You need to think about 2 things:
post-push
workflow called audit
pre-push
workflow.differential.allow-self-accept
is set to false
.Create a herald rule to add blocking reviewers to new diffs like: https://secure.phabricator.com/H65
Change the push policy for your repositories you would like to restrict. For Example: https://secure.phabricator.com/source/phabricator/manage/policies/
NOTE: This solution still works, I'm running this config for 2 years now ;)
Upvotes: 1