Reinitialize the repo object after a fetch.

If a large change is fetched, it may arrive in only a pack file,
which tickles the invalid cache bug in git-python.

Fixes bug 1078946.

Change-Id: Ib912967e37c6aed906d86dc35a4b4a65e4f9c3bd
Reviewed-on: https://review.openstack.org/16199
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2 files changed