Open mikeshiyan opened 9 years ago
P.S.: Also I noticed that .git directory is created inside the downloaded project root, and not in the superproject's one (drupal/.git/modules/...). Is it OK? Because in such case $ git submodule update
doesn't work even with proper paths and without any error messages. I didn't found any info on this.
in #566 we introduced the use of realpath() to prevent issues with symlinks. Now I've read that documentation for that function states that "On windows realpath() will change unix style paths to windows style."
@mikeshiyan Perhaps newer versions of git can work with windows paths?
When downloading Drupal projects as submodules (
$ drush dl devel --package-handler=git_drupalorg --gitsubmodule
) drush (or git?) generates paths with double-backslashes in .gitmodules file:which results in
No submodule mapping found in .gitmodules for path 'sites/all/modules/contrib/devel'
message on$ git submodule update
.But! When doing the same without drush (
$ git submodule add --branch 7.x-1.x http://git.drupal.org/project/devel.git sites/all/modules/contrib/devel
) paths contain forward slashes (sites/all/modules/contrib/devel
) and work properly with other git submodule commands.Drush Version: 7.0-alpha7; OS: Win7.