Page MenuHomePhabricator

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

Authored by epriestley on Dec 11 2013, 8:31 PM.
Tags
None
Referenced Files
F18782605: D7756.diff
Mon, Oct 13, 2:07 AM
F18734527: D7756.diff
Tue, Sep 30, 10:56 PM
F18220475: D7756.id.diff
Aug 19 2025, 2:51 PM
F18208976: D7756.diff
Aug 18 2025, 10:09 PM
F18090332: D7756.diff
Aug 6 2025, 3:14 PM
F17702987: D7756.diff
Jul 16 2025, 12:13 AM
Unknown Object (File)
Jun 26 2025, 7:36 PM
Unknown Object (File)
May 10 2025, 6:31 AM
Subscribers

Details

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.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped