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
F18777823: D21050.id50150.diff
Sat, Oct 11, 5:43 AM
F18734180: D21050.id.diff
Tue, Sep 30, 10:49 PM
F18600618: D21050.diff
Sat, Sep 13, 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
F18394871: D21050.id50151.diff
Aug 29 2025, 10:33 AM
F18392507: D21050.id50150.diff
Aug 29 2025, 8:20 AM
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