Issue #2366251 by helmo: Fixed provision_git_is_repo check on clone?.