Page MenuHomePhabricator

Fix error behavior of "arc version" when it encounters a library which is not a working copy
ClosedPublic

Authored by epriestley on Apr 2 2020, 3:20 PM.
Tags
None
Referenced Files
F18985374: D21050.id50150.diff
Mon, Nov 17, 1:00 PM
F18853339: D21050.diff
Fri, Oct 31, 3:55 PM
F18777823: D21050.id50150.diff
Oct 11 2025, 5:43 AM
F18734180: D21050.id.diff
Sep 30 2025, 10:49 PM
F18600618: D21050.diff
Sep 13 2025, 10:08 AM
F18567702: D21050.id.diff
Sep 9 2025, 4:06 PM
F18446228: D21050.id.diff
Aug 31 2025, 9:13 PM
F18420208: D21050.diff
Aug 30 2025, 4:02 PM
Subscribers
None

Details

Summary

Ref T13504. The API has changed here slightly, and if you run "arc version" without "arcanist/" being a Git working copy, it currently fatals in a misleading way.

Instead, reach the error properly.

Test Plan

Ran "arc version" after moving aside ".git/", got a helpful error message instead of a confusing "call on null" exception.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable