fixes issue where delivering would corrupt the git store