From bc800cebf8c87c9777c8c23736fa5e427941ddd4 Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Sun, 24 May 2020 15:31:18 +0100 Subject: [PATCH] Check out my UE4 Git plugin version for UE 4.24 --- ue4-git-setup.ps1 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ue4-git-setup.ps1 b/ue4-git-setup.ps1 index 736f7a3..4362c51 100644 --- a/ue4-git-setup.ps1 +++ b/ue4-git-setup.ps1 @@ -21,6 +21,9 @@ function Print-Usage { Write-Output " -help : Print this help" } +$gitPluginURL = "git@github.com:sinbad/UE4GitPlugin.git" +$gitPluginBranch = "ue4_24-fixes" + $gitlfs_notlocked = @" *.fbx *.zip @@ -200,7 +203,14 @@ try { $engineIni["SystemSettingsEditor"] = @{"r.Editor.SkipSourceControlCheckForEditablePackages" = "1"} Out-IniFile -Force -InputObject $engineIni -FilePath "Config/DefaultEngine.ini" - # TODO git submodule UE4Plugin + # git submodule UE4Plugin + if (!(Test-Path "Plugins/UE4GitPlugin/GitSourceControl.uplugin")) { + Write-Output "Checking out $gitPluginURL/$gitPluginBranch..." + if (!(Test-Path Plugins)) { + New-Item -ItemType Directory Plugins > $null + } + git submodule add -b $gitPluginBranch $gitPluginURL Plugins/UE4GitPlugin + } } catch {