[git] IJPL-84816 Delete git.clone.shallow registry key

(cherry picked from commit 256392f36282aca50551dc92614b554c8f52f98b)

IJ-CR-147381

GitOrigin-RevId: 6572d5656d8682e426d58c70b7f998085c3a9c30
This commit is contained in:
Ilia.Shulgin
2024-10-18 16:44:35 +02:00
committed by intellij-monorepo-bot
parent 0d52f67739
commit 83fc84993c
4 changed files with 3 additions and 11 deletions

View File

@@ -626,8 +626,6 @@
description="Enable embedded pinentry application for unlock GPG private key while Git perform commit signing. For remote dev (unix backend) and WSL."/>
<registryKey key="git.read.branches.from.disk" defaultValue="false"
description="When enabled, read the '.git/refs' directory contents. When disabled, delegate to 'git branch' call."/>
<registryKey key="git.clone.shallow" defaultValue="false"
description="When enabled, allows shallow cloning of the git repository"/>
<search.projectOptionsTopHitProvider implementation="git4idea.config.GitOptionsTopHitProvider"/>
<vcs name="Git" vcsClass="git4idea.GitVcs" displayName="Git" administrativeAreaName=".git"/>

View File

@@ -161,9 +161,7 @@ private class GitCloneDialogMainPanelCustomizer : DvcsCloneDialogComponent.MainP
private val vm = GitShallowCloneViewModel()
override fun configure(panel: Panel) {
if (Registry.`is`("git.clone.shallow")) {
GitShallowCloneComponentFactory.appendShallowCloneRow(panel, vm).bottomGap(BottomGap.SMALL)
}
GitShallowCloneComponentFactory.appendShallowCloneRow(panel, vm).bottomGap(BottomGap.SMALL)
}
fun getShallowCloneOptions() = vm.getShallowCloneOptions()

View File

@@ -174,9 +174,7 @@ internal abstract class GHCloneDialogExtensionComponentBase(
CloneDvcsValidationUtils.checkDirectory(it.text, it.textField)
}
}
if (Registry.`is`("git.clone.shallow")) {
GitShallowCloneComponentFactory.appendShallowCloneRow(this, shallowCloneModel)
}
GitShallowCloneComponentFactory.appendShallowCloneRow(this, shallowCloneModel)
}
repositoriesPanel.border = JBEmptyBorder(UIUtil.getRegularPanelInsets())
setupAccountsListeners()

View File

@@ -95,9 +95,7 @@ internal object GitLabCloneRepositoriesComponentFactory {
CloneDvcsValidationUtils.checkDirectory(it.text, it.textField as JComponent)
}
}
if (Registry.`is`("git.clone.shallow")) {
GitShallowCloneComponentFactory.appendShallowCloneRow(this, repositoriesVm.shallowCloneVm)
}
GitShallowCloneComponentFactory.appendShallowCloneRow(this, repositoriesVm.shallowCloneVm)
}.apply {
border = JBEmptyBorder(UIUtil.getRegularPanelInsets())
}