This will lead to this error when using https://github.com/antistatique/capdrupal (capistrano):

No submodule mapping found in .gitmodules for path 'profiles/campaignion_dist/libraries/mailchimp

The following folders have the problem

git ls-files --stage | grep 160000
160000 190cf58000ee4ed47900c78d5d4ef58c4cae0b49 0	profiles/campaignion_dist/libraries/mailchimp
160000 375227f845c99b2550a5c26d2a4911313cadb97c 0	profiles/campaignion_dist/libraries/stripe
160000 bf9d361e4e939286777751f4457af54b2e000c7c 0	profiles/campaignion_dist/libraries/timeago

I think the easiest fix is to remove and add them again (Without a .git folder). Perhaps someone has a smarter solution...

Comments

gagarine’s picture

Issue summary: View changes
torotil’s picture

Project: Campaignion Distribution » Campaignion Starterkit

Is this still an issue with campaignion_starterkit?

gagarine’s picture

Yes I still have the issue with the campaignion_starterkit.

gagarine’s picture

The way I fix it:

cd profiles/campaignion_starterkit/libraries
git rm --cache -r stripe-php timeago mailchimp
rm -r mailchimp/.git timeago/.git stripe-php/.git
git add mailchimp/ stripe-php/ timeago/
git commit -m "cleanup libraries added like module"
torotil’s picture

In the campagnion_starterkit repository there is no libraries/-folder. If you do a clean git clone http://git.drupal.org/project/campaignion_starterkit.git -b 7.x-1.x do you still see those folders?

If not, then this seems more like a drush make issue.

gagarine’s picture

You right, I downloaded the package from DO so as you say it's certainly a bug with drush make. All the problematic libraries use [download][type] = git .

How do you build the project locally using both .make file (drupal-org-core.make & drupal-org.make)? I try to find some documentation without success.

torotil’s picture

We use dbuild.py to build our drupal installations. So … what should we do with this bug-report? AFAIK drush uses github for it's issue queue.

gagarine’s picture

Title: Submodule folder but no submodule config » Drush make add extra .git folder
gagarine’s picture

Project: Campaignion Starterkit » Drupal.org drush
Version: 7.x-1.0-beta10 » 7.x-1.x-dev

I don't think it's a drush problem after all. I tried to build the distribution using drush make only following this method: http://www.erpal.info/en/blog/drupal-distribution-packaging-with-drush-make and I didn't have any .git folder at the end.

So I think the problem come from drupalorg_drush (I was never able/enough interested to install this plugin).