OPENIDE #200 Move gits.json.xz from download.jetbrains.com to download.openide.ru

(cherry picked from commit 236c0ea82d)
This commit is contained in:
Nikita Iarychenko
2025-07-11 13:02:18 +04:00
parent c1ebc12ef1
commit 597e2bf7b5

View File

@@ -1,4 +1,7 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
//
// Modified by Nikita Iarychenko at 2025 as part of the OpenIDE project(https://openide.ru).
// Any modifications are available on the same license terms as the original source code.
package git4idea.config
import com.fasterxml.jackson.databind.ObjectMapper
@@ -17,7 +20,7 @@ import org.tukaani.xz.XZInputStream
import java.io.ByteArrayInputStream
import java.io.File
private const val feedUrl = "https://download.jetbrains.com/jdk/feed/v1/gits.json.xz"
private const val feedUrl = "https://download.openide.ru/jdk/feed/v1/gits.json.xz"
private val LOG = Logger.getInstance("#git4idea.config.GitDownloadAndInstall")
fun downloadAndInstallGit(project: Project, onSuccess: () -> Unit = {}) {