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
F14618387: D21050.diff
Thu, Jan 9, 7:44 PM
Unknown Object (File)
Sun, Jan 5, 11:50 AM
Unknown Object (File)
Tue, Dec 31, 7:19 PM
Unknown Object (File)
Sat, Dec 21, 5:53 PM
Unknown Object (File)
Fri, Dec 13, 6:27 AM
Unknown Object (File)
Thu, Dec 12, 6:22 AM
Unknown Object (File)
Dec 8 2024, 12:40 AM
Unknown Object (File)
Nov 26 2024, 5:44 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