diff options
author | Alec Warner <antarus@gentoo.org> | 2022-04-22 16:20:01 -0700 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2022-04-22 16:20:01 -0700 |
commit | 4b2594bb1da221a8f4b78aa1f9346fad7056f873 (patch) | |
tree | 43a262beef551de716277d65480d23744355dca8 | |
parent | Don't let gitolite override the push-key. (diff) | |
download | githooks-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-x | gitlab-mirror/gitlab-mirror | 2 |
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 |