]> git.phdru.name Git - git-scripts.git/blob - copy-scripts/post-update
Feat(submodules/remove): Add option `-c`
[git-scripts.git] / copy-scripts / 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       git checkout master &&
10       git pull origin master &&
11       git push origin master
12       exit
13    fi
14 done