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
F15485898: D7756.diff
Thu, Apr 10, 3:23 AM
F15485169: D7756.diff
Wed, Apr 9, 10:17 PM
F15464745: D7756.diff
Wed, Apr 2, 12:40 PM
F15436803: D7756.diff
Tue, Mar 25, 4:35 PM
F15428294: D7756.id17543.diff
Sun, Mar 23, 6:58 PM
F15413798: D7756.diff
Wed, Mar 19, 9:27 PM
F15400663: D7756.id17546.diff
Mon, Mar 17, 1:13 PM
F15384087: D7756.id17543.diff
Fri, Mar 14, 6:44 PM
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