Fix gniza remote list failing when main config doesn't exist

remote list only reads remotes.d/ — no need to load gniza.conf.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
shuki
2026-03-04 04:31:14 +02:00
parent 425085f018
commit dee8004465

View File

@@ -859,9 +859,6 @@ cmd_remote() {
case "$subcommand" in
list|ls|"")
local config_file; config_file=$(get_opt config "$@" 2>/dev/null) || config_file="$DEFAULT_CONFIG_FILE"
load_config "$config_file"
if ! has_remotes; then
echo "No remotes configured."
echo "Run 'gniza init remote <name>' to add one."