X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft7406-submodule-update.sh;h=5b97222c48a15dff018cb814ca14c59ed0ee91a2;hb=6440d3417c1d51a20014d4b6fc6c59bacfa87dab;hp=33b292b8a8e992c98774ad6e51270a9babc7e6de;hpb=242ff87975199687d46bb8cca5207779a3872b6b;p=git.git diff --git a/t/t7406-submodule-update.sh b/t/t7406-submodule-update.sh index 33b292b8a..5b97222c4 100755 --- a/t/t7406-submodule-update.sh +++ b/t/t7406-submodule-update.sh @@ -611,4 +611,12 @@ test_expect_success 'submodule update places git-dir in superprojects git-dir re ) ' +test_expect_success 'submodule add properly re-creates deeper level submodules' ' + (cd super && + git reset --hard master && + rm -rf deeper/ && + git submodule add ../submodule deeper/submodule + ) +' + test_done