aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2022-03-29 18:39:07 -0700
committerAlec Warner <antarus@gentoo.org>2022-03-29 18:39:07 -0700
commitf63f822dc3afc429988d2ddee2a164068df9f78a (patch)
tree34c4e6db8a4e8f2e010a0c6d815e7951dab422db
parentlocal/require-signed-push: raise clock drift limit (diff)
downloadgithooks-f63f822dc3afc429988d2ddee2a164068df9f78a.tar.gz
githooks-f63f822dc3afc429988d2ddee2a164068df9f78a.tar.bz2
githooks-f63f822dc3afc429988d2ddee2a164068df9f78a.zip
Update our wrappers.githooks-20220330T013907Z
Gitea, we do not support anymore. Gitlab, we are starting to support. Signed-off-by: Alec Warner <antarus@gentoo.org>
-rwxr-xr-xgitlab-mirror/gitlab-mirror (renamed from gitea-mirror/gitea-mirror)9
-rwxr-xr-xgitlab-mirror/gitlab-ssh-wrapper (renamed from gitea-mirror/gitea-ssh-wrapper)0
2 files changed, 3 insertions, 6 deletions
diff --git a/gitea-mirror/gitea-mirror b/gitlab-mirror/gitlab-mirror
index 0c39975..5daf384 100755
--- a/gitea-mirror/gitea-mirror
+++ b/gitlab-mirror/gitlab-mirror
@@ -12,14 +12,11 @@ if [ -z "${GL_REPO}" ]; then
exit 1
fi
-targets=$(git config --get gentoo.mirror.url)
+targets=$(git config --get gitlab.mirror.url)
[ -z "${targets}" ] && exit 0
-[ -z "${GIT_SSH_KEY}" ] && export GIT_SSH_KEY=$(git config --get gitea.mirror.pubkey)
-[ -z "${GIT_SSH_KEY}" ] && export GIT_SSH_KEY=$(git config --get gentoo.mirror.pubkey)
-# TODO: fix this into version control!
-: ${GIT_SSH_KEY:=/home/antarus/gitea-mirror/gentoo-gitea.ssh.priv}
-export GIT_SSH=$(dirname "$(readlink -f "$0")")/gitea-ssh-wrapper
+[ -z "${GIT_SSH_KEY}" ] && export GIT_SSH_KEY=$(git config --get gitlab.mirror.pubkey)
+export GIT_SSH=$(dirname "$(readlink -f "$0")")/gitlab-ssh-wrapper
for target in ${targets}; do
# --force because someone may accidentally push into the mirror
diff --git a/gitea-mirror/gitea-ssh-wrapper b/gitlab-mirror/gitlab-ssh-wrapper
index 5f4c1fc..5f4c1fc 100755
--- a/gitea-mirror/gitea-ssh-wrapper
+++ b/gitlab-mirror/gitlab-ssh-wrapper