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
Unknown Object (File)
Thu, Feb 13, 2:50 AM
Unknown Object (File)
Sat, Feb 8, 8:22 PM
Unknown Object (File)
Sat, Feb 8, 8:21 PM
Unknown Object (File)
Sat, Feb 8, 8:21 PM
Unknown Object (File)
Sat, Feb 8, 6:54 PM
Unknown Object (File)
Fri, Feb 7, 1:10 PM
Unknown Object (File)
Sat, Feb 1, 9:19 PM
Unknown Object (File)
Sat, Feb 1, 9:18 PM
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