From 037a42d9be1b5303ee8d0c447b9d8f68b332fc7e Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 14 Aug 2020 18:15:09 +0300 Subject: [PATCH] Feat(hooks/post-update): Push back to `origin` --- hooks/post-update | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2