Fixed git proxy check

This commit is contained in:
Martin Lablans 2023-10-20 16:47:15 +02:00
parent 74817a21da
commit 9fc8564e4e
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ for DIR in /etc/bridgehead $(pwd); do
git -C $DIR config credential.helper "$CREDHELPER"
fi
old_git_hash="$(git -C $DIR rev-parse --verify HEAD)"
if [ -z "$HTTP_PROXY_FULL_URL" ]; then
if [ -z "$HTTPS_PROXY_FULL_URL" ]; then
log "INFO" "Git is using no proxy!"
OUT=$(retry 5 git -C $DIR fetch 2>&1 && retry 5 git -C $DIR pull 2>&1)
else
log "INFO" "Git is using proxy ${HTTP_PROXY_URL} from ${CONFFILE}"