mirror of
https://github.com/samply/bridgehead.git
synced 2025-08-07 18:00:21 +02:00
Rewrote proxy detection logic to deal with all combinations of no/authenticated/unauthenticated proxy servers
This commit is contained in:
@@ -50,8 +50,7 @@ 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_URL" ]; then
|
||||
log "INFO" "Git is using no proxy!"
|
||||
if [ -z "$HTTP_PROXY_FULL_URL" ]; then
|
||||
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}"
|
||||
|
Reference in New Issue
Block a user