ci/lib-docker: preserve required environment variables
commitffce2ebdd9ad14d1ba315592157c03ce7ebd6212
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Sat, 4 Apr 2020 01:08:46 +0000 (4 08:08 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Apr 2020 20:44:42 +0000 (6 13:44 -0700)
treea1a33c014fd39b698e430c7da1a5376c4f261b5e
parentd2fae19e0ffa682e8781dbb649519bc118de1c5a
ci/lib-docker: preserve required environment variables

We're using "su -m" to preserve environment variables in the shell run
by "su". But, that options will be ignored while "-l" (aka "--login") is
specified in util-linux and busybox's su.

In a later patch this script will be reused for checking Git for Linux
with musl libc on Alpine Linux, Alpine Linux uses "su" from busybox.

Since we don't have interest in all environment variables,
pass only those necessary variables to the inner script.

Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ci/run-linux32-build.sh