Normalize patch remote identity checks #93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/normalize-git-remotes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Normalize recognized Git remote URL forms before
allod patch applycompares manifest and destination repository identities. This accepts equivalent HTTPS, SCP-style SSH, andssh://remotes while preserving exact-string behavior for unrecognized forms and still rejecting different repositories.Update patch transfer docs and add regression coverage for equivalent URL forms plus a normalized mismatch.
Closes allod/tools#92
Risk
Low. The new comparison first accepts exact raw matches, then only compares normalized identities when both remotes match recognized URL patterns.
Validation
bash -n allodbash -n tests/allod-patch.shbash tests/allod-patch.shfor t in tests/**/*.sh; do bash "$t"; done