This fixes an issue when re-running a pipeline and the deploy stage is run in another machine.
This ensures that git config --add safe-directory is always run.
git config --add safe-directory