summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-01-23 23:59:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-01-23 23:59:21 (GMT)
commite801be066cc12799cd053a5b4eb792d9007133fc (patch)
treee09cc3c92b94f6e426f6f06da8efc623305253a2 /t
parent9dc7f78149407cf2659d4ea6295bad88313b2899 (diff)
parent6e7c14e65c863b615a6a3abb2a3668b261008809 (diff)
downloadgit-e801be066cc12799cd053a5b4eb792d9007133fc.zip
git-e801be066cc12799cd053a5b4eb792d9007133fc.tar.gz
git-e801be066cc12799cd053a5b4eb792d9007133fc.tar.bz2
Merge branch 'sb/submodule-init'
Error message fix. * sb/submodule-init: submodule update --init: display correct path from submodule
Diffstat (limited to 't')
-rwxr-xr-xt/t7406-submodule-update.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/t7406-submodule-update.sh b/t/t7406-submodule-update.sh
index 64f322c..725bbed 100755
--- a/t/t7406-submodule-update.sh
+++ b/t/t7406-submodule-update.sh
@@ -140,6 +140,23 @@ test_expect_success 'submodule update --init --recursive from subdirectory' '
test_i18ncmp expect2 actual2
'
+cat <<EOF >expect2
+Submodule 'foo/sub' ($pwd/withsubs/../rebasing) registered for path 'sub'
+EOF
+
+test_expect_success 'submodule update --init from and of subdirectory' '
+ git init withsubs &&
+ (cd withsubs &&
+ mkdir foo &&
+ git submodule add "$(pwd)/../rebasing" foo/sub &&
+ (cd foo &&
+ git submodule deinit -f sub &&
+ git submodule update --init sub 2>../../actual2
+ )
+ ) &&
+ test_i18ncmp expect2 actual2
+'
+
apos="'";
test_expect_success 'submodule update does not fetch already present commits' '
(cd submodule &&