summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_coreboot.sh
diff options
context:
space:
mode:
authorJames McCoy <jamessan@debian.org>2015-06-07 07:55:03 -0400
committerHolger Levsen <holger@layer-acht.org>2015-06-07 13:57:27 +0200
commit0a3367a9db34bcc900f65df94b4f6c1fd4695f26 (patch)
treeb842f98e26e81a0ce096382d6c81a9af17c58916 /bin/reproducible_coreboot.sh
parentdc559d219b5119e2b3e2cacfcda0c9ee77c6c3df (diff)
downloadjenkins.debian.net-0a3367a9db34bcc900f65df94b4f6c1fd4695f26.tar.xz
reproducible coreboot: Use ca-global certs for https verification
Fix quoting issue which prevented git from finding the certificate bundle. Signed-off-by: James McCoy <jamessan@debian.org>
Diffstat (limited to 'bin/reproducible_coreboot.sh')
-rwxr-xr-xbin/reproducible_coreboot.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/reproducible_coreboot.sh b/bin/reproducible_coreboot.sh
index a5280bd7..d33d7a18 100755
--- a/bin/reproducible_coreboot.sh
+++ b/bin/reproducible_coreboot.sh
@@ -90,10 +90,13 @@ mkdir b1 b2
echo "============================================================================="
echo "$(date -u) - Cloning the coreboot git repository with submodules now."
echo "============================================================================="
-git clone --recursive http://review.coreboot.org/p/coreboot.git
+CAFILE=/etc/ssl/ca-global/ca-certificates.crt
+CACONFIG=
+[ -f "$CAFILE" ] && CACONFIG="GIT_SSL_CAINFO=$CAFILE"
+env $CACONFIG git clone --recursive https://review.coreboot.org/p/coreboot.git
cd coreboot
# still required because coreboot moved submodules and to take care of old git versions
-git submodule update --init --checkout 3rdparty/blobs
+env $CACONFIG git submodule update --init --checkout 3rdparty/blobs
COREBOOT="$(git log -1)"
COREBOOT_VERSION=$(git describe)