Unverified Commit c2684b4d authored by Doron Behar's avatar Doron Behar Committed by GitHub
Browse files

Merge pull request #295240 from linsui/gitproxy

fetchgit: set http.proxy globally for submodules
parents 13a8da96 1ed37ac9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ init_remote(){
        git config remote.origin.partialclonefilter "blob:none"
        echo "$sparseCheckout" | git sparse-checkout set --stdin ${nonConeMode:+--no-cone}
    fi
    ( [ -n "$http_proxy" ] && clean_git config http.proxy "$http_proxy" ) || true
    ( [ -n "$http_proxy" ] && clean_git config --global http.proxy "$http_proxy" ) || true
}

# Return the reference of an hash if it exists on the remote repository.