completion: support completing non-ASCII pathnames
[gitweb.git] / contrib / completion / git-completion.bash
index 57fc7417f9bfd30710de5d84ca0ef461663b98c4..2a8fe2aa18e087adbcd80a3b17a6a774ababa979 100644 (file)
@@ -371,10 +371,12 @@ __gitcomp_file ()
 __git_ls_files_helper ()
 {
        if [ "$2" == "--committable" ]; then
-               __git -C "$1" diff-index --name-only --relative HEAD
+               __git -C "$1" -c core.quotePath=false diff-index \
+                       --name-only --relative HEAD
        else
                # NOTE: $2 is not quoted in order to support multiple options
-               __git -C "$1" ls-files --exclude-standard $2
+               __git -C "$1" -c core.quotePath=false ls-files \
+                       --exclude-standard $2
        fi
 }