Homec4science

Fix fatal in Git hook when a --force push completely rewrites a ref

Authored by epriestley <git@epriestley.com> on Dec 11 2013, 23:46.

Description

Fix fatal in Git hook when a --force push completely rewrites a ref

Summary: Fixes T4224. If you git merge-base A B, and they have no ancestor, the command exits with an error. Assume errors mean "no ancestry" and continue.

Test Plan: Completely rewrite a repository with a --force push.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T4224

Differential Revision: https://secure.phabricator.com/D7756

Details

Committed
epriestley <git@epriestley.com>Dec 11 2013, 23:46
Pushed
aubortJan 31 2017, 17:16
Parents
rPH6b1ec35cf377: Allow Herald rules to check for revisions with no reviewers
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH61c934449d17: Fix fatal in Git hook when a --force push completely rewrites a ref (authored by epriestley <git@epriestley.com>).Dec 11 2013, 23:46