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