Use temp directory in checkoutHead specs
Use temp directory in isPathNew/Modified specs
Add copyRepository helper
Remove spec completely tested in git-utils library