aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-02-10 13:59:01 -0800
committerJunio C Hamano <gitster@pobox.com>2012-02-10 13:59:01 -0800
commit5febbda4e7afb4f26bed9d2dc5f9c4ceca86d2b8 (patch)
treea98a9004d033ea6bf882bf0d131138f8a38d8c91 /t
parent38ca63f3c0ef70ba4e41d3b5e347e2c7e7d67fe5 (diff)
parent1017c1abcb6d733e1de83eb5a1cf7e1bf4ad6aca (diff)
downloadgit-5febbda4e7afb4f26bed9d2dc5f9c4ceca86d2b8.tar.gz
git-5febbda4e7afb4f26bed9d2dc5f9c4ceca86d2b8.tar.xz
Merge branch 'jl/submodule-re-add' into maint
* jl/submodule-re-add: submodule add: fix breakage when re-adding a deep submodule
Diffstat (limited to 't')
-rwxr-xr-xt/t7406-submodule-update.sh8
1 files changed, 8 insertions, 0 deletions
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