$ drush -d dl contact_attach --package-handler=git_drupalorg --gitsubmodule
$ git status
# On branch example.com
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: .gitmodules
# new file: contact_attach
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# sites/all/modules/contact_attach/
Bootstrap to phase 0. [0.01 sec, 2.37 MB]
Drush bootstrap phase : _drush_bootstrap_drush() [0.01 sec, 2.51 MB]
Cache HIT cid: 6.0-commandfiles-0-7fe23cd8d05a34dfd0d483d8f80fbdc1 [0.02 sec, 2.53 MB]
Bootstrap to phase 0. [0.16 sec, 6.39 MB]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.28 sec, 6.39 MB]
Initialized Drupal 7.23 root directory at /home/user/Public/Sites/example.com [0.3 sec, 7.39 MB]
Found command: pm-download (commandfile=pm) [0.3 sec, 7.4 MB]
Loading version_control engine. [0.55 sec, 7.43 MB]
Loading package_handler engine. [0.55 sec, 7.45 MB]
Loading release_info engine. [0.56 sec, 7.5 MB]
Including /usr/share/pear/drush/commands/pm/download.pm.inc [0.56 sec, 7.61 MB]
Calling hook drush_pm_download_validate [0.56 sec, 7.7 MB]
Returned from hook drush_pm_download_validate [0.56 sec, 7.7 MB]
Calling hook drush_pm_download [0.57 sec, 7.71 MB]
Downloading release history from http://updates.drupal.org/release-history/contact_attach/7.x [0.57 sec, 7.72 MB]
Executing: wget --version
GNU Wget 1.14 built on linux-gnu.
+digest +https +ipv6 +iri +large-file +nls +ntlm +opie +ssl/openssl
Wgetrc:
/etc/wgetrc (system)
Locale: /usr/share/locale
Compile: gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/etc/wgetrc"
-DLOCALEDIR="/usr/share/locale" -I. -I../lib -I../lib -march=x86-64
-mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
Link: gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2
-Wl,-O1,--sort-common,--as-needed,-z,relro /usr/lib/libssl.so
/usr/lib/libcrypto.so /usr/lib/libz.so -ldl -lz -lz -lidn -luuid
-lpcre -lrt ftp-opie.o openssl.o http-ntlm.o ../lib/libgnu.a
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Originally written by Hrvoje Niksic <[email protected]>.
Please send bug reports and questions to <[email protected]>.
Executing: wget -q --timeout=30 -O /tmp/download_filexeRUrR http://updates.drupal.org/release-history/contact_attach/7.x
Calling drush_delete_dir(/tmp/contact_attachzjOKp2, 1) [1.26 sec, 7.72 MB]
Calling is_readable(/tmp/download_filexeRUrR) [1.26 sec, 7.72 MB]
Calling is_writable(/tmp) [1.26 sec, 7.73 MB]
Calling rename(/tmp/download_filexeRUrR, /tmp/contact_attachzjOKp2) [1.26 sec, 7.73 MB]
Downloading project contact_attach to /tmp/drush_tmp_1377450833_521a3b519048c ... [1.26 sec, 7.73 MB]
Executing: git clone --verbose --progress git://git.drupal.org/project/contact_attach.git /tmp/drush_tmp_1377450833_521a3b519048c/contact_attach
Cloning into '/tmp/drush_tmp_1377450833_521a3b519048c/contact_attach'...
remote: Counting objects: 424, done.
remote: Compressing objects: 100% (210/210), done.
remote: Total 424 (delta 296), reused 304 (delta 211)
Receiving objects: 100% (424/424), 104.09 KiB | 26.00 KiB/s, done.
Resolving deltas: 100% (296/296), done.
Checking connectivity... done
Calling chdir(/tmp/drush_tmp_1377450833_521a3b519048c/contact_attach) [7.34 sec, 7.75 MB]
Executing: git tag -l 7.x-1.0-rc1
7.x-1.0-rc1
Calling chdir(/home/user/Public/Sites/example.com) [7.34 sec, 7.74 MB]
Calling chdir(/tmp/drush_tmp_1377450833_521a3b519048c/contact_attach) [7.34 sec, 7.74 MB]
Executing: git checkout 7.x-1.0-rc1
Note: checking out '7.x-1.0-rc1'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 1b3836f... Issue #1851252: Add toggle to use simple file field when file module is enabled
Calling chdir(/home/user/Public/Sites/example.com) [7.35 sec, 7.74 MB]
Using destination directory sites/all/modules [7.35 sec, 7.74 MB]
Verifying signature for svn version control engine. [7.36 sec, 7.75 MB]
Executing: svn info sites/all/modules
sh: svn: command not found
Verifying signature for bzr version control engine. [7.36 sec, 7.75 MB]
Executing: bzr root sites/all/modules
bzr: ERROR: Not a branch: "/home/user/Public/Sites/example.com/sites/all/modules/".
Calling _drush_recursive_copy(/tmp/drush_tmp_1377450833_521a3b519048c/contact_attach, sites/all/modules/contact_attach) [7.45 sec, 7.74 MB]
Project contact_attach (7.x-1.0-rc1) downloaded to sites/all/modules/contact_attach. [7.46 sec, 7.74 MB]
Calling chdir(sites/all/modules) [7.46 sec, 7.75 MB]
Executing: git rev-parse --show-toplevel
/home/user/Public/Sites/example.com
Calling chdir(/home/user/Public/Sites/example.com) [7.46 sec, 7.75 MB]
Calling chdir(/home/user/Public/Sites/example.com) [7.47 sec, 7.75 MB]
Executing: git submodule add git://git.drupal.org/project/contact_attach.git
Cloning into 'contact_attach'...
Checking connectivity... done
Calling chdir(/home/user/Public/Sites/example.com) [13.25 sec, 7.75 MB]
Returned from hook drush_pm_download [13.25 sec, 7.74 MB]
Command dispatch complete [13.26 sec, 7.72 MB]
Peak memory usage was 9.19 MB [13.26 sec, 7.72 MB]