[repohooks] Update pre-upload.py script to check git version

This change checks the git version and fails if it is or

TEST=Ran repo upload in environment with sufficient and
     insufficient git versions. Ensured it fails when the version
     is 1.7.1 and succeeds when the version is

Change-Id: I34ee42fbc40f2419529e87da4f9bf79d8583c591
1 file changed
tree: bbe154d3bc7d9ed952506810e7ce4a602cbb5fd2
  1. checkpatch.pl
  2. pre-upload.py