[AIRFLOW-6758] Skip git version retrieval in case of invalid git (#7382)
[AIRFLOW-6758] Skip git version retrieval in case of invalid git (#7382)

This happens when you have shared clone of the repository

(cherry picked from commit 951aa6230bf85bd109e52f1ab1cce61b963a54b7)

owlabs/incubator-airflow,owlabs/incubator-airflow,owlabs/incubator-airflow,owlabs/incubator-airflow