I have installed a Drupal Module using Composer. when I add and commit using Git, the folder is committed, but no contents. Here is the output of git commit
create mode 160000 modules/contrib/backup_migrate
Here are the permissions on that folder
drwxrwxr-x
When I install the Module using Drush, Git commits the Folder and Contents, no problem. The permissions are identical for Drush and Composer Installs. The output of the Git Commit is:
create mode 100644 modules/contrib/backup_migrate/.gitignore
and lots more following. I have had a good look here on StackOverflow and elsewhere, but no-one seems to be able to solve this particular problem.