[PATCH 0/5] Avoid the_repository in merge-ort and replay
- From
Elijah Newren via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Feb 18, 2026, 09:15 UTC
- Message-ID
- <pull.2048.git.1771406115.gitgitgadget@gmail.com>
Remove explicit uses of the_repository and the_hash_algo from merge-ort, and since this has now been done multiple times for both merge-ort and replay, implement a small measure to prevent them from returning to either merge-ort or replay.
See https://lore.kernel.org/git/CABPp-BH7E1Bh2g0vR3T4NEsv34DvFQPzMuJSsqtOAaWY-fFCxg@mail.gmail.com/ and https://lore.kernel.org/git/CABPp-BFuwvqiCTCCpoyT6em9_1-qrgPWHWhrufQ3UuZ+Kfkb6A@mail.gmail.com/ for recent discussions on these.
Series overview: Patches 1-3: Mostly mechanical removal of existing uses Patches 4-5: Simple hammer to prevent the problem from returning
Elijah Newren (5): merge-ort: pass repository to write_tree() merge-ort: replace the_repository with opt->repo merge-ort: replace the_hash_algo with opt->repo->hash_algo merge-ort: prevent the_repository from coming back replay: prevent the_repository from coming back
merge-ort.c | 92 ++++++++++++++++++++++++++++------------------------- replay.c | 2 ++ 2 files changed, 51 insertions(+), 43 deletions(-)
base-commit: 73fd77805fc6406f31c36212846d9e2541d19321 Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-2048%2Fnewren%2Favoid_the_repository-v1 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-2048/newren/avoid_the_repository-v1 Pull-Request: https://github.com/gitgitgadget/git/pull/2048
-- gitgitgadget