]> git.phdru.name Git - git-scripts.git/blob - hooks/post-update
Add post-update to update git-scripts after pushing to git-scripts.git
[git-scripts.git] / hooks / post-update
1 #!/bin/sh
2 # Update git-scripts after pushing to master at git-scripts.git.
3 # This hook must be in git-scripts.git/hooks/post-update.
4
5 for ref in "$@"; do
6    if [ "$ref" = refs/heads/master ]; then
7       unset GIT_DIR
8       cd ../git-scripts &&
9       exec git pull ../git-scripts.git master
10    fi
11 done