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
F21266827: D21050.diff
Wed, Jul 8, 9:21 PM
Unknown Object (File)
Apr 22 2026, 4:36 AM
Unknown Object (File)
Mar 28 2026, 7:45 PM
Unknown Object (File)
Feb 23 2026, 9:50 PM
Unknown Object (File)
Feb 11 2026, 3:38 AM
Unknown Object (File)
Dec 16 2025, 10:13 AM
Unknown Object (File)
Dec 10 2025, 11:46 AM
Unknown Object (File)
Dec 10 2025, 11:18 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