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
F15384087: D7756.id17543.diff
Fri, Mar 14, 6:44 PM
Unknown Object (File)
Mon, Feb 17, 2:56 AM
Unknown Object (File)
Mon, Feb 17, 1:44 AM
Unknown Object (File)
Feb 9 2025, 10:49 AM
Unknown Object (File)
Feb 9 2025, 10:49 AM
Unknown Object (File)
Feb 9 2025, 10:49 AM
Unknown Object (File)
Feb 9 2025, 10:49 AM
Unknown Object (File)
Feb 3 2025, 9:14 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