Check git version before attempting to disable sparse-checkout
#1656
+97
−30
sparse-checkout
#1656