Page MenuHomePhabricator

Fix changeset construction special case for empty commits in pre-commit hooks
ClosedPublic

Authored by epriestley on Jun 21 2018, 10:56 PM.
Tags
None
Referenced Files
F19505959: D19500.diff
Fri, Jan 9, 3:37 PM
F19505958: D19500.diff
Fri, Jan 9, 3:36 PM
F19505953: D19500.diff
Fri, Jan 9, 3:33 PM
F19505950: D19500.diff
Fri, Jan 9, 3:32 PM
F19505947: D19500.diff
Fri, Jan 9, 3:31 PM
F19505938: D19500.diff
Fri, Jan 9, 3:25 PM
F19505915: D19500.diff
Fri, Jan 9, 3:13 PM
F19101063: D19500.diff
Dec 5 2025, 1:18 AM
Subscribers
None

Details

Summary

Fixes T13155. Ref T13151. A recent change (D19455) changed the return format here, but I missed this special case for empty commits.

Test Plan
  • T13155 has a good set of reproduction instructions.
  • Pushed an empty commit.
    • Before: bunch of warning log spew.
    • After: clean logs.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable