diff options
Diffstat (limited to 'hooks/post-receive')
-rwxr-xr-x | hooks/post-receive | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hooks/post-receive b/hooks/post-receive index f25f084..a641f24 100755 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -1,15 +1,16 @@ #!/bin/sh +project=Megapahit product=website repo=/usr/local/git/pub/$product.git web=~www/apache24/data unset GIT_DIR -cd $HOME/$product \ +cd $HOME/Documents/$project/$product \ && git pull \ && git --git-dir=$repo --work-tree=$web checkout -f master -- \ index.html \ 7.1.13.53452.html \ - 7.1.13.53573.html \ + 7.1.14.53615.html \ 7.1.13.53691.html \ && git --git-dir=$repo push -f |