From: Eddy Petrișor <eddy.petri...@gmail.com>

Signed-off-by: Eddy Petrișor <eddy.petri...@gmail.com>
---
 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

Reply via email to