diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-07-15 10:35:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-15 10:35:17 -0700 |
commit | 1f101bf6507bdc786666beac6d9a7480066a020f (patch) | |
tree | ccdc9979ee8f16e44160ea47b332cb4389424a55 /t | |
parent | 1b790212efc238bc7c94417d4b19a5b11e3dd541 (diff) | |
parent | bed947048919d0ed8b8eece38eb18b15f99e313f (diff) | |
download | git-1f101bf6507bdc786666beac6d9a7480066a020f.tar.gz |
Merge branch 'fg/submodule-non-ascii-path' into maint
Many "git submodule" operations did 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')
-rwxr-xr-x | t/t7400-submodule-basic.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index ff265353a3..7e23421309 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 |