aboutsummaryrefslogtreecommitdiff
path: root/t/t7400-submodule-basic.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-06-26 15:07:35 -0700
committerJunio C Hamano <gitster@pobox.com>2013-06-26 15:07:36 -0700
commit4f9ec8dd23ca463c4da782c11cea7a18ec111e15 (patch)
tree0431e5ad5dfa94f763850aeaf99eddc8387ed381 /t/t7400-submodule-basic.sh
parent9832cb9d4dc969fbfacfd1f8940fcbdec18bb930 (diff)
parentbed947048919d0ed8b8eece38eb18b15f99e313f (diff)
downloadgit-4f9ec8dd23ca463c4da782c11cea7a18ec111e15.tar.gz
git-4f9ec8dd23ca463c4da782c11cea7a18ec111e15.tar.xz
Merge branch 'fg/submodule-non-ascii-path'
Many "git submodule" operations do not work on a submodule at a path whose name is not in ASCII. * fg/submodule-non-ascii-path: t7400: test of UTF-8 submodule names pass under Mac OS handle multibyte characters in name
Diffstat (limited to 't/t7400-submodule-basic.sh')
-rwxr-xr-xt/t7400-submodule-basic.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh
index f47cc7b60..71a42f008 100755
--- a/t/t7400-submodule-basic.sh
+++ b/t/t7400-submodule-basic.sh
@@ -868,4 +868,19 @@ test_expect_success 'submodule deinit fails when submodule has a .git directory
test -n "$(git config --get-regexp "submodule\.example\.")"
'
+test_expect_success 'submodule with UTF-8 name' '
+ svname=$(printf "\303\245 \303\244\303\266") &&
+ mkdir "$svname" &&
+ (
+ cd "$svname" &&
+ git init &&
+ >sub &&
+ git add sub &&
+ git commit -m "init sub"
+ ) &&
+ test_config core.precomposeunicode true &&
+ git submodule add ./"$svname" &&
+ git submodule >&2 &&
+ test -n "$(git submodule | grep "$svname")"
+'
test_done