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:
git clone https://github.com/my-grocery-price-book/www.git
docker-compose run --rm app bash
git diff-files
Anyone know what I need to do to get git to behave correctly inside docker?