0

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 applied example

Herald rules not working. Arc land still pushes code.

  • You should probably use the Herald rules that are available in Phabricator. More information can be found here: https://stackoverflow.com/questions/25662723/phabricator-restrict-git-push – CEPA Nov 30 '16 at 16:12
  • I tried with herald rules. But it's not working for me. arc land allows landing without checking rules. and also how to restrict push from IDE? – Muralidharan Murugan Dec 01 '16 at 03:20

1 Answers1

1

You need to think about 2 things:

  • Avoid commits from direct pushes without Diffs. This would reject creating a post-push workflow called audit

Herald Rule Overview Herald Rule Details

NOTE: This solution still works, I'm running this config for 2 years now ;)

Fábio Correia
  • 595
  • 7
  • 16
OCram85
  • 841
  • 1
  • 9
  • 25