Advertisement
gilzow

git post-receive with submodule

Jul 21st, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.18 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. export GIT_DIR=/sites/<resource_account>/path/to/repo
  4.  
  5. cd /sites/<resource_account>/www/wp-content/themes
  6.  
  7. git checkout -f
  8. git submodule init
  9. git submodule update
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement