]> git.phdru.name Git - git-scripts.git/commitdiff
Feat(hooks/post-update): Push back to `origin`
authorOleg Broytman <phd@phdru.name>
Fri, 14 Aug 2020 15:15:09 +0000 (18:15 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 14 Aug 2020 15:15:09 +0000 (18:15 +0300)
hooks/post-update

index 62e3b0f0818552f1d395152062094bf3e6b8ac8b..3350fa84c5a8511d56587b321b31daa3fed8a3fe 100755 (executable)
@@ -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