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

(cherry picked from commit 236c0ea82d)
(cherry picked from commit 634d2e8637)
(cherry picked from commit b556935e81)
(cherry picked from commit 13729fceb8)
This commit is contained in:
Nikita Iarychenko
2025-07-11 13:02:18 +04:00
parent de0e7e66b3
commit 63cd3d75f0

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 = {}) {