Normalize patch remote identity checks #93

Merged
vnprc merged 1 commit from agent/normalize-git-remotes into master 2026-07-08 20:36:51 +01:00
Member

Summary

Normalize recognized Git remote URL forms before allod patch apply compares manifest and destination repository identities. This accepts equivalent HTTPS, SCP-style SSH, and ssh:// 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 allod
  • bash -n tests/allod-patch.sh
  • bash tests/allod-patch.sh
  • Full shell suite: for t in tests/**/*.sh; do bash "$t"; done
## Summary Normalize recognized Git remote URL forms before `allod patch apply` compares manifest and destination repository identities. This accepts equivalent HTTPS, SCP-style SSH, and `ssh://` 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 allod` - `bash -n tests/allod-patch.sh` - `bash tests/allod-patch.sh` - Full shell suite: `for t in tests/**/*.sh; do bash "$t"; done`
vnprc approved these changes 2026-07-08 20:36:44 +01:00
vnprc merged commit 827dd9dc19 into master 2026-07-08 20:36:51 +01:00
vnprc deleted branch agent/normalize-git-remotes 2026-07-08 20:36:51 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
allod/tools!93
No description provided.