[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[qa] 01/01: Support git pulling through https with the debian.org SSL setup



This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch master
in repository qa.

commit 5ce6a2c84ceb4f50a4d5c9dc99a68777907ea4ee
Author: Mattia Rizzolo <mattia@debian.org>
Date:   Sat Dec 16 12:59:20 2017 +0100

    Support git pulling through https with the debian.org SSL setup
    
    More info: https://wiki.debian.org/ServicesSSL#git
    
    Signed-off-by: Mattia Rizzolo <mattia@debian.org>
---
 data/cronjobs/00_git_update | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/data/cronjobs/00_git_update b/data/cronjobs/00_git_update
index 647b1ce..b6548bf 100755
--- a/data/cronjobs/00_git_update
+++ b/data/cronjobs/00_git_update
@@ -3,8 +3,13 @@
 
 set -e
 
+CAdir=/etc/ssl/ca-debian
+if [ -d "$CAdir" ]; then
+    opts="-c http.sslCAInfo=/etc/ssl/ca-debian/ca-certificates.crt"
+fi
+
 cd /srv/qa.debian.org
-git pull --quiet
+git ${opts:-} pull --quiet
 
 cd /srv/qa.debian.org/data/cronjobs
 make -s install

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/qa.git


Reply to: