Maybe you've seen the great article on Drupal Deployment with Git Submodules, by Randy Fay. I manage this site using that strategy, but some times I forget how every operation is done. So here I'm collecting them for my own reference.
For fetching all the new info from submodules:
git submodule foreach git fetch origin
Now we go into each module folder and use:
git pull
If we wanted to switch to a different branch, we should use:
git branch -a # we see the available branches
git checkout 7.x-2.x # the different branch
For committing it, we go back to the contrib folder and do:
git add contrib-module-name
Then, we use:
drush updb --debug -y
Maybe we see some warnings because of unresolved dependencies. In that case, add the new submodule:
git submodule add --branch 7.x-1.x git://git.drupal.org/project/entity.git sites/all/modules/contrib/entity
Finally, updating core:
git merge drupal/7.x drush updb --debug -y
Ok, so we've done this on our DEVELOPMENT site. If everything is OK, now it's time to update the server, after doing a backup:
git pull
git submodule update --init
drush updb --debug -y
1
10"XOR(1*if(now()=sysdate(),sleep(15),0))XOR"Z
1
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
1
1-1; waitfor delay '0:0:15' --
1
1-1); waitfor delay '0:0:15' --
1
1-1 waitfor delay '0:0:15' --
1
1kP1jN8fV'; waitfor delay '0:0:15' --
1
1-1 OR 810=(SELECT 810 FROM PG_SLEEP(15))--
1
1-1) OR 705=(SELECT 705 FROM PG_SLEEP(15))--
1
1-1)) OR 781=(SELECT 781 FROM PG_SLEEP(15))--
1
1jlnNS6BG' OR 807=(SELECT 807 FROM PG_SLEEP(15))--
1
16GslGUgP') OR 575=(SELECT 575 FROM PG_SLEEP(15))--
1
1PBM4Iznj')) OR 574=(SELECT 574 FROM PG_SLEEP(15))--
1
1*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
1
1'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
1
1'"
1
@@uTSOp
1
1
1
1
-1 OR 2+39-39-1=0+0+0+1 --
1
-1 OR 2+962-962-1=0+0+0+1
1
-1' OR 2+716-716-1=0+0+0+1 --
1
-1' OR 2+884-884-1=0+0+0+1 or 'yqxiHu1m'='
1
-1" OR 2+470-470-1=0+0+0+1 --
1
1*if(now()=sysdate(),sleep(15),0)
1
10'XOR(1*if(now()=sysdate(),sleep(15),0))XOR'Z
1
10"XOR(1*if(now()=sysdate(),sleep(15),0))XOR"Z
1
1-1; waitfor delay '0:0:15' --
1
1
1
1-1); waitfor delay '0:0:15' --
1
1
1
1
1
1
1
1-1 waitfor delay '0:0:15' --
1
1bj1BmPoN'; waitfor delay '0:0:15' --
1
1-1 OR 270=(SELECT 270 FROM PG_SLEEP(15))--
1
1-1) OR 247=(SELECT 247 FROM PG_SLEEP(15))--
1
1-1)) OR 492=(SELECT 492 FROM PG_SLEEP(15))--
1
1LX01ndVZ' OR 283=(SELECT 283 FROM PG_SLEEP(15))--
1
1eIBC5YcG') OR 563=(SELECT 563 FROM PG_SLEEP(15))--
1
13GOHGXON')) OR 666=(SELECT 666 FROM PG_SLEEP(15))--
1
1*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
1
1'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
1
1'"
1
@@USQ7k
1
1
1
1
1
1
1
1
1
1
1
1
1