git: handle cases where --git-changes is used in a non-git repository
preparation for release 0.2