2024-09-23 01:33:17 +00:00
|
|
|
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
2024-08-10 13:28:10 +00:00
|
|
|
. "$PSScriptRoot/../../../Common/Scripts/Config.ps1";
|
|
|
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
|
|
|
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
|
|
|
|
2024-10-12 15:14:53 +00:00
|
|
|
Start-SoftwareInstaller @args `
|
|
|
|
-Inherit "$PSScriptRoot/../../../Common/Software/git/Manage.ps1" `
|
|
|
|
-Installer {
|
|
|
|
$params = "/WindowsTerminalProfile";
|
|
|
|
$defaultBranch = Get-OSConfig "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;
|
|
|
|
};
|