Attempt to ensure git finds the right repo in testing

Move the testing repo to a temporary path outside the repo in order
to ensure that git checks the right repo for the given revision.
Oddly, this worked anyway locally, but failed on the CI.

Change-Id: Ifab64ec4bbc4153cea4a035afd58ade0221120eb