like below fixes the issue It seems that when I changed the file name git did not properly record the change. I remove the dir from the repo with
git rm -r --cached controllers
Possible to run a test against a file when pushed to git and reject in case the push?
By : user3309563
Date : March 29 2020, 07:55 AM
Hope this helps What you're trying to do is a remote hook: update is the one you need. You just have to write a script that's running your test against the repository (or the diff) and return a non-zero code if something sounds wrong for you.
Why the push method doesn't work in this case : .push