2024-11-01 12:12:16 +00:00
|
|
|
. "$PSScriptRoot/../../lib/SoftwareManagement.ps1";
|
|
|
|
. "$PSScriptRoot/../../../lib/Config.ps1";
|
|
|
|
. "$PSScriptRoot/../../../lib/Software.ps1";
|
2024-08-10 13:28:10 +00:00
|
|
|
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
|
|
|
|
2024-10-12 15:14:53 +00:00
|
|
|
Start-SoftwareInstaller @args `
|
2024-10-12 16:13:41 +00:00
|
|
|
-Inherit "$PSScriptRoot/../../../Common/Software/git/Main.ps1" `
|
2024-10-12 15:14:53 +00:00
|
|
|
-Installer {
|
|
|
|
$params = "/WindowsTerminalProfile";
|
2024-10-13 17:52:28 +00:00
|
|
|
$defaultBranch = Get-OSConfig "programs.git.defaultBranch";
|
2024-08-10 13:28:10 +00:00
|
|
|
|
2024-10-12 15:14:53 +00:00
|
|
|
if ($defaultBranch) {
|
|
|
|
$params += " /DefaultBranchName:`"$defaultBranch`"";
|
|
|
|
}
|
2024-08-10 13:28:10 +00:00
|
|
|
|
2024-10-12 15:14:53 +00:00
|
|
|
Install-ChocoPackage git -ArgumentList "--params", $params;
|
|
|
|
};
|