]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t3910-mac-os-precompose.sh
Merge branch 'tb/precompose-prefix-too'
[thirdparty/git.git] / t / t3910-mac-os-precompose.sh
index a0b9208ce83dfdd359b99aec105bea0ccd30a4c2..898267a6bd1c8d1320c8e808707ba079c39933fe 100755 (executable)
@@ -194,6 +194,22 @@ test_expect_failure 'handle existing decomposed filenames' '
        test_must_be_empty untracked
 '
 
+test_expect_success "unicode decomposed: git restore -p . " '
+       DIRNAMEPWD=dir.Odiarnfc &&
+       DIRNAMEINREPO=dir.$Adiarnfc &&
+       export DIRNAMEPWD DIRNAMEINREPO &&
+       git init "$DIRNAMEPWD" &&
+       (
+               cd "$DIRNAMEPWD" &&
+               mkdir "$DIRNAMEINREPO" &&
+               cd "$DIRNAMEINREPO" &&
+               echo "Initial" >file &&
+               git add file &&
+               echo "More stuff" >>file &&
+               echo y | git restore -p .
+       )
+'
+
 # Test if the global core.precomposeunicode stops autosensing
 # Must be the last test case
 test_expect_success "respect git config --global core.precomposeunicode" '