From: Oleg Broytman Date: Fri, 14 Aug 2020 15:15:09 +0000 (+0300) Subject: Feat(hooks/post-update): Push back to `origin` X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=037a42d9be1b5303ee8d0c447b9d8f68b332fc7e Feat(hooks/post-update): Push back to `origin` --- diff --git a/hooks/post-update b/hooks/post-update index 62e3b0f..3350fa8 100755 --- a/hooks/post-update +++ b/hooks/post-update @@ -9,6 +9,8 @@ for ref in "$@"; do if ! git remote show -n origin 2>/dev/null; then git remote add origin ../git-scripts.git fi && - exec git pull origin master + git pull origin master && + git push origin master + exit fi done