I am very new to CircleCI and I am trying to run a very simple shell script to find out the files that’s been changed in a branch since it was branched from the master.
In my config file, I have the following:
In my test.sh, I run the following command:
git diff --name-only my_branch master
But it doesn’t show anything. I tried ssh into the virtual environment that the CircleCI checked out my repo into, and tried running all kinds of variations of git diff command. It doesn’t show anything. These commands return expected results in my local terminal though.
I am wondering if CircleCI does a shallow checkout by default? How do I solve this issue?
Thanks for your help!