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)
Tue, Jan 21, 1:56 PM
Unknown Object (File)
Thu, Jan 16, 4:10 AM
Unknown Object (File)
Sun, Jan 5, 2:03 PM
Unknown Object (File)
Dec 24 2024, 3:57 PM
Unknown Object (File)
Dec 19 2024, 11:03 AM
Unknown Object (File)
Dec 19 2024, 3:48 AM
Unknown Object (File)
Dec 13 2024, 8:01 PM
Unknown Object (File)
Dec 12 2024, 11:36 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