Fix compile even if we don't have .git repo

Authored by mlaurent on Dec 3 2019, 12:56 PM.