fix git diff-files listing all files in docker
问题 I am trying to write a script that will use git to get the files that have changed and run commands based on that. I do my development with docker-compose and here is the repo I am working on https://github.com/my-grocery-price-book/www when running git diff-files from inside the container it lists all the files. when running git diff-files from outside the container list no files. upgrading git inside the container to the latest version of 2.16 still gives the same output. Steps to reproduce