aboutsummaryrefslogtreecommitdiff
path: root/aux/ci/git-pre-push.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-07-25 15:16:31 -0300
committerEuAndreh <eu@euandre.org>2021-07-25 15:16:31 -0300
commit7400e108286a0fceacdac63b125fdc924c2dd50c (patch)
tree4849176606778477ead8a9ded4c9ff43bf4a8feb /aux/ci/git-pre-push.sh
parentservers/nixvps/configuration.nix: Serve Git repositories from NGINX, remove G... (diff)
downloadserver-7400e108286a0fceacdac63b125fdc924c2dd50c.tar.gz
server-7400e108286a0fceacdac63b125fdc924c2dd50c.tar.xz
aux/: Update
Diffstat (limited to 'aux/ci/git-pre-push.sh')
-rwxr-xr-xaux/ci/git-pre-push.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/aux/ci/git-pre-push.sh b/aux/ci/git-pre-push.sh
index e73b9b8..eaaa7bd 100755
--- a/aux/ci/git-pre-push.sh
+++ b/aux/ci/git-pre-push.sh
@@ -2,12 +2,13 @@
set -eux
TLD="$(cat aux/tld.txt)"
+. aux/lib.sh
-PACKAGE="$(basename "$PWD")"
-LOGS_DIR="/opt/ci/$PACKAGE/logs"
-REMOTE_GIT_DIR="/srv/git/$PACKAGE.git"
+PROJECT="$(basename "$PWD")"
+LOGS_DIR="/opt/ci/$PROJECT/logs"
+REMOTE_GIT_DIR="/srv/http/$PROJECT.git"
-DESCRIPTION="$(mktemp)"
+DESCRIPTION="$(mkstemp)"
if [ -f description ]
then
cp description "$DESCRIPTION"