fix: get_hub_url falls back to ~/.muse/config.toml when no repo config found
muse auth whoami (and any other hub-aware command) was failing with 'No hub URL provided' when invoked without --hub outside a repo, even when the user had set [hub] url in ~/.muse/config.toml after keygen/register.
Root cause: get_hub_url() only checked <repo>/.muse/config.toml (via _config_path()) and returned None immediately if no hub section was found, ignoring the global user config entirely.
Fix: after checking the repo-local config, fall back to _GLOBAL_CONFIG_FILE (~/.muse/config.toml). Repo-local config still takes precedence.
Regression tests added in TestWhoamiGlobalConfigFallback: - test_whoami_reads_hub_from_global_config: whoami succeeds outside a repo when global config has [hub] url - test_whoami_global_config_fallback_not_used_when_repo_config_present: repo config takes precedence over global config
0 comments
muse hub commit comment sha256:3463f547792154c4104d876b254bbac0510a0c935bde39d102614c225effe23a --body "your comment"
No comments yet. Be the first to start the discussion.