We're attempting to use TeamCity to deploy only changed files to our web server from git. To do this, we need the modified timestamp of the files to be the last commit time in our central repo.
Whenever we do a clean build (clean checkout directory) in TeamCity, the modified time of the file is the time the build ran. We need it to be the last commit time so it is reliable.
We utilized the commit hook here: What's the equivalent of use-commit-times for git? I got the hook to work in my personal repo, but it doesn't seem to work when implemented in TeamCity.
How can we get TeamCity to use last commit time as the file's modified time?