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:
@@ -859,9 +859,6 @@ cmd_remote() {
|
|||||||
|
|
||||||
case "$subcommand" in
|
case "$subcommand" in
|
||||||
list|ls|"")
|
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
|
if ! has_remotes; then
|
||||||
echo "No remotes configured."
|
echo "No remotes configured."
|
||||||
echo "Run 'gniza init remote <name>' to add one."
|
echo "Run 'gniza init remote <name>' to add one."
|
||||||
|
|||||||
Reference in New Issue
Block a user