aboutsummaryrefslogtreecommitdiff
path: root/src/infrastructure/ci/git-pre-receive.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-08-18 18:26:58 -0300
committerEuAndreh <eu@euandre.org>2024-08-18 18:26:58 -0300
commit5cabb11e012365096bea22bbb5014dd031537c42 (patch)
tree6b5b108fe996f6ae54f32b2fbcdc065b71baac55 /src/infrastructure/ci/git-pre-receive.sh
parentsystem.scm: Use configuration from syskeep and upstream "packages" repository (diff)
downloadtoph-5cabb11e012365096bea22bbb5014dd031537c42.tar.gz
toph-5cabb11e012365096bea22bbb5014dd031537c42.tar.xz
rm -rf src/infrastructure/{ci,config,scripts}/
Diffstat (limited to 'src/infrastructure/ci/git-pre-receive.sh')
-rwxr-xr-xsrc/infrastructure/ci/git-pre-receive.sh14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/infrastructure/ci/git-pre-receive.sh b/src/infrastructure/ci/git-pre-receive.sh
deleted file mode 100755
index 8cd83ee..0000000
--- a/src/infrastructure/ci/git-pre-receive.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-set -eu
-
-read -r _oldrev SHA _refname
-unset GIT_DIR
-
-if [ "$SHA" = '0000000000000000000000000000000000000000' ]; then
- exit
-fi
-
-printf 'Upgrading post-receive hook...' >&2
-git show "$SHA":src/infrastructure/ci/git-post-receive.sh > hooks/post-receive
-chmod +x hooks/post-receive
-printf 'done.\n' >&2