Use a better test to commit changes to the build cache if it is a git repo.
Use a better test to commit changes to the build cache if it is a git repo.

rhafer/crowbar,tserong/crowbar,aplanas/crowbar,crowbar/crowbar,rhafer/crowbar,rsalevsky/crowbar,dirkmueller/crowbar,rsalevsky/crowbar,SUSE-Cloud/crowbar,vwallfahrer/crowbar,crowbar/crowbar,SUSE-Cloud/crowbar,aspiers/crowbar,toabctl/crowbar,nkrinner/crowbar,rhafer/crowbar,tserong/crowbar,mmnelemane/crowbar,aspiers/crowbar,nkrinner/crowbar,mmnelemane/crowbar,vwallfahrer/crowbar,MaximilianMeister/crowbar,dirkmueller/crowbar,aplanas/crowbar,toabctl/crowbar,MaximilianMeister/crowbar