Skip git-checkout related tests when .git is missing

When running tests from the released tarballs, the
AUTHORs related checks are failing due to missing .git
directory and the fallout caused by it.

Change-Id: Ic960863621f1b239ced299f892466537431d44d5
Merge "Skip git-checkout related tests when .git is missing"