Helper methods for testing interactions with Git