summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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