Use a mock to test git