]> git.phdru.name Git - git-scripts.git/blobdiff - hooks/post-update
Add `copy-scripts/`: Copy this repo to a remote host
[git-scripts.git] / hooks / post-update
diff --git a/hooks/post-update b/hooks/post-update
deleted file mode 100755 (executable)
index 3350fa8..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-# Update git-scripts after pushing to master at git-scripts.git.
-# This hook must be in git-scripts.git/hooks/post-update.
-
-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 pull origin master &&
-      git push origin master
-      exit
-   fi
-done