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
Unknown Object (File)
Sat, Oct 5, 3:59 PM
Unknown Object (File)
Wed, Oct 2, 11:10 AM
Unknown Object (File)
Sep 4 2024, 5:51 PM
Unknown Object (File)
Aug 31 2024, 5:58 AM
Unknown Object (File)
Aug 28 2024, 3:16 PM
Unknown Object (File)
Aug 28 2024, 6:52 AM
Unknown Object (File)
Aug 28 2024, 6:29 AM
Unknown Object (File)
Aug 28 2024, 6:26 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