The solution is to use the following command

sudo git config --system --add safe.directory '*'

I suspect at some point this will be necessary to add to EmonScripts @TrystanLea. Have not tried it on an emonSD setup to see if there are any ill effects on a lover git version.