Commit Graph

6 Commits

Author SHA1 Message Date
Filippos Giannakos 8c78ddfd5c Improve pre-push fileset for a new remote branch
When pushing a branch that does not exist on the remote repository,
instead of blindly running the checks on every file, this commit locates
the first ancestor not present on the remote repository and uses its
parent as the source of the fileset calculation. If it has no parents,
then the remote repository has no common commits and the checks should
be run on all files.
2017-02-14 19:19:35 +02:00
Anthony Sottile 6eb260f774 Fixups and test for pre-commit/pre-commit#277 2015-10-08 19:08:49 -07:00
Barry Steyn e216b0b2cc Fix bug - pushing on an empty changeset 2015-10-08 11:26:18 -07:00
Barry Steyn dd73ffd02f Filtering of hooks for commit or push stages 2015-10-05 07:17:20 -07:00
Chris Kuehl ec6f6cc854 Make pre-push-tmpl non-executable 2015-07-25 22:33:38 -07:00
dongweiming b707cbba06 Make pre_commit also support pre-push hook 2015-01-14 19:26:37 -08:00