Page MenuHomePhabricator

Recover from `null` authors in commit parsing
ClosedPublic

Authored by epriestley on Jun 23 2014, 2:22 PM.
Tags
None
Referenced Files
F15468333: D9684.id23233.diff
Thu, Apr 3, 11:24 PM
F15439069: D9684.id23233.diff
Wed, Mar 26, 5:31 AM
F15283543: D9684.id23233.diff
Mar 4 2025, 7:47 AM
Unknown Object (File)
Feb 10 2025, 12:36 AM
Unknown Object (File)
Jan 27 2025, 3:04 PM
Unknown Object (File)
Jan 27 2025, 3:00 PM
Unknown Object (File)
Jan 27 2025, 7:13 AM
Unknown Object (File)
Jan 27 2025, 7:13 AM
Subscribers

Details

Summary

Fixes T5445. Some import tools and other unusual situations can leave repositories with commits that don't have authors. This fails on insert.

Instead, explicitly cast the value to a string.

Test Plan

I didn't build a local repro, but see task/GitHub.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Recover from `null` authors in commit parsing.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: chad, btrahan.
chad edited edge metadata.
This revision is now accepted and ready to land.Jun 23 2014, 2:23 PM
epriestley updated this revision to Diff 23234.

Closed by commit rP40fa4799a32d (authored by @epriestley).