Prevent different git references from being cached under the same folder