From 48ef7886a3f3634df24c815aa720ea6b1dd60070 Mon Sep 17 00:00:00 2001 From: Hans Elizaga Date: Tue, 9 Dec 2025 20:20:48 -0800 Subject: [PATCH] fix: update config commands to use unset-all for better key management --- bin/gtr | 2 +- lib/config.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/gtr b/bin/gtr index 5bc781f..846ba27 100755 --- a/bin/gtr +++ b/bin/gtr @@ -898,7 +898,7 @@ cmd_config() { log_error "Usage: git gtr config get [--global]" exit 1 fi - cfg_get "$key" "$scope" + cfg_get_all "$key" "$scope" ;; set) if [ -z "$key" ] || [ -z "$value" ]; then diff --git a/lib/config.sh b/lib/config.sh index 99ba0bc..c5a9047 100644 --- a/lib/config.sh +++ b/lib/config.sh @@ -121,7 +121,7 @@ cfg_unset() { --local|local|*) flag="--local" ;; esac - git config $flag --unset "$key" 2>/dev/null || true + git config $flag --unset-all "$key" 2>/dev/null || true } # Get config value with environment variable fallback