Bug 884406 - Check that we have a .git directory before copying