fix: force-resign silent no-op and push false up-to-date on missing repo
migrate --force-resign returned commits_signed=0 when the repo had no hub configured because get_signing_identity() needs a hub URL. Fixed by: - migrate() now raises ValueError when force_resign=True but no identity - migrate CLI falls back to remote URLs when no hub section is configured
push to a non-existent repo (404) silently returned status=up_to_date by swallowing the TransportError and falling back to stale local tracking refs. Fixed by letting _fetch_remote_info_safe re-raise HTTP errors (404, 401, 5xx) and catching them early in run() with git-style fatal error messages.
sha256:53a490b35d3e01926a7d0ff0acd526407eb2cefa1778d7819c5ac5417ff2450d
sha
+80
~4
symbols
sha256:8ebd8833336ab7b99ef35b20c50ab27303c210522a1597021e45c588de58f391
snapshot
+80
symbols added
~4
symbols modified
0
dead code introduced
Semantic Changes
84 symbols
+
test_fr1_force_resign_returns_commits_signed
function
function test_fr1_force_resign_returns_commits_signed L212–228
+
test_fr2_commits_verify_after_force_resign
function
function test_fr2_commits_verify_after_force_resign L235–275
+
test_fr5_force_resign_covers_stale_signed_commits
function
function test_fr5_force_resign_covers_stale_signed_commits L349–364
+
test_fr6_force_resign_without_identity_raises
function
function test_fr6_force_resign_without_identity_raises L330–346
+
test_p404_1_repo_not_found_exits_nonzero
function
function test_p404_1_repo_not_found_exits_nonzero L214–235
+
test_p404_2_repo_not_found_json_error
function
function test_p404_2_repo_not_found_json_error L242–262
+
test_p404_3_network_error_uses_cached_refs
function
function test_p404_3_network_error_uses_cached_refs L269–291
+
test_p404_4_auth_error_exits_nonzero
function
function test_p404_4_auth_error_exits_nonzero L298–316
+
test_p404_5_fetch_remote_info_safe_reraises_on_404
function
function test_p404_5_fetch_remote_info_safe_reraises_on_404 L323–340
~
run
~
migrate
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:53a490b35d3e01926a7d0ff0acd526407eb2cefa1778d7819c5ac5417ff2450d --body "your comment"
No comments yet. Be the first to start the discussion.