Add new comment

Hi Andrew,

Thanks for the comment. Accessing a git repository a straightforward extension to the "package repository" functionality in composer.json, and that's nothing specific to Drupal. You swap out the dist contents and use source instead: I think you can specify type:vcs and it will work it out.

You can see some examples here (same link as above): just omit the dist entirely and it should work. reference is anything commit-ish: so branch, tag, commit hash. And the git URL you use is provided on the Drupal project's "Version control" tab e.g. here it is for Views.

This is how drush m2c represents anything git-ish in the makefile, so I'm pretty sure it works fine.