Problem/Motivation

After installing the module, when I try and commit my branch, I am unable to because the module contains a .git folder.

Steps to reproduce

After being unable to push the cache_control_override folder, I looked at the folder in finder, where I saw that it contained a .git folder.

Proposed resolution

Remove the .git folder when someone runs "composer require 'drupal/cache_control_override:^2.0'" to install the module.

Comments

amadhav1 created an issue. See original summary.

prudloff’s picture

Category: Bug report » Support request

This probably means the Composer package was installed from source for some reason.
Do you still have the problem if you run composer reinstall drupal/cache_control_override --prefer-dist?

Dist should be the default but you might have some Composer config overriding that.
It also falls back to source if it can't download the dist ZIP file.