X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=copy-scripts%2Fpost-update;fp=hooks%2Fpost-update;h=78fc50d4cebb3fd185eae7008fb025e74cfd92ae;hb=5e1ae12d726ec5594426315bea7ee6a0b85b8bd1;hp=3350fa84c5a8511d56587b321b31daa3fed8a3fe;hpb=037a42d9be1b5303ee8d0c447b9d8f68b332fc7e;p=git-scripts.git diff --git a/hooks/post-update b/copy-scripts/post-update similarity index 73% rename from hooks/post-update rename to copy-scripts/post-update index 3350fa8..78fc50d 100755 --- a/hooks/post-update +++ b/copy-scripts/post-update @@ -6,9 +6,7 @@ for ref in "$@"; do if [ "$ref" = refs/heads/master ]; then unset GIT_DIR cd ../git-scripts && - if ! git remote show -n origin 2>/dev/null; then - git remote add origin ../git-scripts.git - fi && + git checkout master && git pull origin master && git push origin master exit