Remove duplicate git setup in tests.

Less duplication for more reuse. If the intent was clarity before, I'm
happy to skip this and just have duplicate code...

Change-Id: I09fd14ecd9751e79a3a475dedf320c36ba0ba71c
Merge "Remove duplicate git setup in tests."