summaryrefslogtreecommitdiff
path: root/t/t7406-submodule-update.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-12-05 21:00:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-12-05 21:00:20 (GMT)
commitc83386d14ded4968c93098d9413425ab29eb38a0 (patch)
tree14c64c285e5de9db9f0666953801f9064a948faf /t/t7406-submodule-update.sh
parentc3dc3827d6588d5284724aa2e9f2a6c71ea1c6da (diff)
parent361412828ab580e145c3350cf075b283ebe331a5 (diff)
downloadgit-c83386d14ded4968c93098d9413425ab29eb38a0.zip
git-c83386d14ded4968c93098d9413425ab29eb38a0.tar.gz
git-c83386d14ded4968c93098d9413425ab29eb38a0.tar.bz2
Merge branch 'jl/submodule-update-retire-orig-flags'
Code clean-up. * jl/submodule-update-retire-orig-flags: submodule update: remove unnecessary orig_flags variable
Diffstat (limited to 't/t7406-submodule-update.sh')
-rwxr-xr-xt/t7406-submodule-update.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t7406-submodule-update.sh b/t/t7406-submodule-update.sh
index 0825a92..0246e80 100755
--- a/t/t7406-submodule-update.sh
+++ b/t/t7406-submodule-update.sh
@@ -762,6 +762,17 @@ test_expect_success 'submodule update clone shallow submodule' '
(cd submodule &&
test 1 = $(git log --oneline | wc -l)
)
+)
+'
+
+test_expect_success 'submodule update --recursive drops module name before recursing' '
+ (cd super2 &&
+ (cd deeper/submodule/subsubmodule &&
+ git checkout HEAD^
+ ) &&
+ git submodule update --recursive deeper/submodule >actual &&
+ test_i18ngrep "Submodule path .deeper/submodule/subsubmodule.: checked out" actual
)
'
+
test_done