summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-01-31 22:01:16 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-01-31 22:01:16 -0800
commit412a79f4cb5e660a2f1ba550363c20ae5f443a86 (patch)
treeaf666692d64a81cdb1b1e27d78b6a16a69123f71 /t
parentMerge branch 'tr/grep-l-with-decoration' (diff)
parentsubmodule add: fix breakage when re-adding a deep submodule (diff)
downloadtgif-412a79f4cb5e660a2f1ba550363c20ae5f443a86.tar.xz
Merge branch 'jl/submodule-re-add'
* 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 33b292b8a8..5b97222c48 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