summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2022-04-22 16:20:01 -0700
committerAlec Warner <antarus@gentoo.org>2022-04-22 16:20:01 -0700
commit4b2594bb1da221a8f4b78aa1f9346fad7056f873 (patch)
tree43a262beef551de716277d65480d23744355dca8
parentDon't let gitolite override the push-key. (diff)
downloadgithooks-4b2594bb1da221a8f4b78aa1f9346fad7056f873.tar.gz
githooks-4b2594bb1da221a8f4b78aa1f9346fad7056f873.tar.bz2
githooks-4b2594bb1da221a8f4b78aa1f9346fad7056f873.zip
Export the variable properly.githooks-20220422T232001Z
Signed-off-by: Alec Warner <antarus@gentoo.org>
-rwxr-xr-xgitlab-mirror/gitlab-mirror2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab-mirror/gitlab-mirror b/gitlab-mirror/gitlab-mirror
index f33c8fc..0c8ce91 100755
--- a/gitlab-mirror/gitlab-mirror
+++ b/gitlab-mirror/gitlab-mirror
@@ -15,7 +15,7 @@ fi
targets=$(git config --get gitlab.mirror.url)
[ -z "${targets}" ] && exit 0
-[ -z "${GIT_SSH_KEY}" ] && export ~/gitlab-ssh-key
+[ -z "${GIT_SSH_KEY}" ] && export GIT_SSH_KEY=~/gitlab-ssh-key
export GIT_SSH=$(dirname "$(readlink -f "$0")")/gitlab-ssh-wrapper
for target in ${targets}; do