Re: [PATCH v2 2/6] merge: make sparse-aware with ORT
- From
Derrick Stolee <stolee@gmail.com>
- Date
- Sep 8, 2021, 01:49 UTC
- Message-ID
- <b9591211-e58c-f913-d72c-1c0c5cd4a9c7@gmail.com>
- In-Reply-To
- <e8a875aa-181f-e71f-55ee-012edccf7ecb@gmail.com>
On 8/30/2021 1:18 PM, Derrick Stolee wrote:
Show 16 quoted lines
> On 8/27/2021 6:43 PM, Elijah Newren wrote: >> On Tue, Aug 24, 2021 at 2:52 PM Derrick Stolee via GitGitGadget >>> + ensure_not_expanded checkout -f update-deep && >>> + ( >>> + sane_unset GIT_TEST_MERGE_ALGORITHM && >>> + git -C sparse-index config pull.twohead ort && >>> + ensure_not_expanded merge -m merge update-folder1 && >>> + ensure_not_expanded merge -m merge update-folder2 >>> + ) >>> ' >> >> Should you use test_config rather than git config here? > > That's a better pattern. It's not technically _required_ for these > tests because the repositories are completely rewritten at the start > of each new test, but it's best to be a good example.
Actually, test_config runs test_when_finished, and that results in the following message and failure on macOS and Windows:
BUG 'test_when_finished does nothing in a subshell'
So, I'll leave this as-is.
Thanks, -Stolee