From: Đoàn Trần Công Danh Date: Wed, 24 Jun 2020 00:16:54 GMT Subject: Re: [PATCH v5.1] lib-submodule-update: pass 'test_must_fail' as an argument Message-ID: <20200624001654.GA18358@danh.dev> In-Reply-To: <7b9c19b3606f31b12a79591a41847dcb0a071751.1592942452.git.liu.denton@gmail.com> On 2020-06-23 16:21:20-0400, Denton Liu wrote: > diff --git a/t/t4137-apply-submodule.sh b/t/t4137-apply-submodule.sh > index b645e303a0..5477d48ffd 100755 > --- a/t/t4137-apply-submodule.sh > +++ b/t/t4137-apply-submodule.sh > @@ -6,13 +6,15 @@ test_description='git apply handling submodules' > . "$TEST_DIRECTORY"/lib-submodule-update.sh > > apply_index () { > - git diff --ignore-submodules=dirty "..$1" | git apply --index - > + git diff --ignore-submodules=dirty "..$1" >diff && > + $2 git apply --index diff > } > > test_submodule_switch_func "apply_index" > > apply_3way () { > - git diff --ignore-submodules=dirty "..$1" | git apply --3way - > + git diff --ignore-submodules=dirty "..$1" >diff > + $2 git apply --3way diff It seems like you forgot to chain commands with '&&' here. > } > > test_submodule_switch_func "apply_3way" -- Danh