post-receive 261 B

1234567891011121314
  1. #!/bin/sh
  2. unset GIT_DIR
  3. cd /home/twtech/github/python/
  4. if [ ! -d "/home/twtech/github/python/crawl-mrdx" ];then
  5. git clone https://git.yoqi.me/lyq/crawl-mrdx.git
  6. fi
  7. cd crawl-mrdx
  8. git fetch --all && git reset --hard origin/master
  9. echo "pull finished!"