Git hooks/Export on push

From Sidvind
Jump to: navigation, search

Code: post-update (view, download)

  1. #!/bin/sh
  2.  
  3. # update
  4. GIT_WORK_TREE=/path/to/repo git checkout -f
  5.  
  6. # update http access
  7. git update-server-info