HomePhabricator

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

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

Provenance
epriestleyAuthored on Dec 11 2013, 10:46 PM
epriestleyPushed on Dec 11 2013, 10:46 PM
Reviewer
btrahan
Differential Revision
D7756: Fix fatal in Git hook when a --force push completely rewrites a ref
Parents
rP6b1ec35cf377: Allow Herald rules to check for revisions with no reviewers
Branches
Unknown
Tags
Unknown
Tasks
T4224: Failure when trying to force push

Event Timeline