fix: handle empty config values in getRepoConfig() (#684)

Previously, bd repo commands (list, add, remove, sync) failed with
'unexpected end of JSON input' when repos.additional config key
had an empty value. GetConfig() returns ('', nil) for missing keys,
and json.Unmarshal fails on empty strings.

Added empty value check before JSON parsing to return empty map
in this case. Added tests for repo config helper functions.
This commit is contained in:
dylan-conlin
2025-12-22 01:25:07 -08:00
committed by GitHub
parent 025045bdb2
commit 2c5acc9060

Diff Content Not Available