From: Eddy Petrișor Date: Wed, 18 Apr 2018 22:35:51 GMT Subject: [RFC PATCH v4 8/9] fixup:t7406:use super_w instead of the existing super Message-ID: <20180418223552.18345-8-eddy.petrisor@codeaurora.org> In-Reply-To: <20180418223552.18345-1-eddy.petrisor@codeaurora.org> From: Eddy Petrișor Signed-off-by: Eddy Petrișor --- t/t7406-submodule-update.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/t/t7406-submodule-update.sh b/t/t7406-submodule-update.sh index 18328be73..f44872143 100755 --- a/t/t7406-submodule-update.sh +++ b/t/t7406-submodule-update.sh @@ -286,10 +286,11 @@ test_expect_success 'submodule update --remote --recursive --init should fetch m test_tick && git commit -m "add l1 module with branch b1 in super5" && git submodule init submodl1b1 && - git clone super5 super && - git -C super submodule update --recursive --init && + cd .. && + git clone super5 super_w && + git -C super_w submodule update --recursive --init && ( - cd submodl1b1 && + cd super_w/submodl1b1 && git rev-parse --verify HEAD >../../actuall1 && test_cmp ../../expectl1 ../../actuall1 ) && @@ -298,6 +299,7 @@ test_expect_success 'submodule update --remote --recursive --init should fetch m git rev-parse --verify HEAD >../../../actuall2 && test_cmp ../../../expectl2 ../../../actuall2 ) && + test_when_finished "rm super_w" && test_when_finished "rm submodl2b2" && test_when_finished "rm submodl1b1" ' -- 2.16.2